summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-18 15:52:05 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2020-04-18 15:52:05 +0200
commit09914e3fe1fbb3cd6c5227c0ea93b77cae43ca05 (patch)
tree184be057803a57ba13525b1f0270ed30555a0a61 /src
parentb6081275edefe500b8dd8b5239e7ab3dd7d633a2 (diff)
Fix feed links.
Change-Id: I1c04bdbbef852b65a23375d6725714bbc06b95e8
Diffstat (limited to 'src')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java7
1 files changed, 3 insertions, 4 deletions
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)