From 09914e3fe1fbb3cd6c5227c0ea93b77cae43ca05 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 18 Apr 2020 15:52:05 +0200 Subject: Fix feed links. Change-Id: I1c04bdbbef852b65a23375d6725714bbc06b95e8 --- src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main/java/eu') diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java index 9c871d3..ebf154e 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java @@ -98,7 +98,7 @@ public abstract class PostResource { return postList .data("posts", q.posts) - .data("feedUri", "/bookmarks/feed") + .data("feedUri", "/posts/feed") .data("pageTitle", pageTitle) .data("showBookmarkForm", showBookmarkForm()) .data("showLazychatForm", showLazychatForm()) @@ -125,7 +125,7 @@ public abstract class PostResource { return postList .data("posts", q.posts) - .data("feedUri", String.format("/bookmarks/~%s/feed", ownerName)) + .data("feedUri", String.format("/posts/~%s/feed", ownerName)) .data("pageTitle", pageTitle) .data("showBookmarkForm", showBookmarkForm()) .data("showLazychatForm", showLazychatForm()) @@ -179,7 +179,7 @@ public abstract class PostResource { feed.setOtherLinks(List.of(selfLink)); var htmlAltLink = new Link(); - var htmlAltPath = owner == null ? "/bookmarks" : String.format("~%s/bookmarks", ownerName); + var htmlAltPath = owner == null ? "/posts" : String.format("~%s/posts", ownerName); htmlAltLink.setHref(uri.resolve(URI.create(htmlAltPath)).toString()); htmlAltLink.setRel("alternate"); htmlAltLink.setType("text/html"); @@ -318,7 +318,6 @@ public abstract class PostResource { return postList .data("posts", List.of(post)) - .data("feedUri", "/bookmarks/feed") .data("pageTitle", pageTitle) .data("showBookmarkForm", false) .data("showLazychatForm", false) -- cgit v1.2.3