KB49 Vary feed URI based on resource type rendered.

Change-Id: I02025bc5ce86aa6cda1b083c7a542cefb561c25d
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 @@
     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 @@
     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);