Fix feed links.
Change-Id: I1c04bdbbef852b65a23375d6725714bbc06b95e8
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 @@
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 @@
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 @@
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 @@
return postList
.data("posts", List.of(post))
- .data("feedUri", "/bookmarks/feed")
.data("pageTitle", pageTitle)
.data("showBookmarkForm", false)
.data("showLazychatForm", false)