]> gitweb.mndrdr.org Git - arelpe.git/commitdiff
apparently the canonical url is the same as guid
authorAidan Cornelius-Bell <[email protected]>
Sun, 15 Sep 2024 01:56:42 +0000 (11:26 +0930)
committerAidan Cornelius-Bell <[email protected]>
Sun, 15 Sep 2024 01:56:42 +0000 (11:26 +0930)
app/views/pubview/rss.rss.builder

index c8093a3c3ad4041af8a2dbe1b57d4cc3bb48f4e6..30f6bb52adea4d3026ebe7df9f80549c283e335d 100644 (file)
@@ -25,10 +25,11 @@ xml.language "en-US"
        xml.pubDate post.rss_time
        if post.post_type == 'bookmark'
        xml.link post.url
+       xml.guid post.url
        else
        xml.link public_post_url(year: post.created_at.year, slug: post.slug)
-       end
        xml.guid public_post_url(year: post.created_at.year, slug: post.slug)
+       end
        
        # Add more metadata if needed
        xml.author post.user.full_name if post.respond_to?(:user) && post.user