summaryrefslogtreecommitdiff
path: root/src/main/java/eu
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/eu')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java4
1 files changed, 2 insertions, 2 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 c100e55..2e67208 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/PostResource.java
@@ -109,7 +109,7 @@ public abstract class PostResource {
var session = entityManager.unwrap(Session.class);
var q = Post.findViewable(postFilter, session, reader, null, cursor, maxResults);
- var feedUri = "/posts/feed";
+ var feedUri = uri.getPath() + "/feed";
if (reader != null) {
var pageKey = ensurePageKey(reader, feedUri);
feedUri += "?page-key=" + pageKey.key.toString(36);
@@ -143,7 +143,7 @@ public abstract class PostResource {
var session = entityManager.unwrap(Session.class);
var q = Post.findViewable(postFilter, session, reader, owner, cursor, maxResults);
- var feedUri = String.format("/posts/~%s/feed", ownerName);
+ var feedUri = uri.getPath() + "/feed";
if (reader != null) {
var pageKey = ensurePageKey(reader, feedUri);
feedUri += "?page-key=" + pageKey.key.toString(36);