This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new 27deb514f for users its better to link to the Activity rss/atom feed 
instead of user-project FeedItem feed
27deb514f is described below

commit 27deb514ff1e6b89a1a38eeddec3ab17e3fd04f1
Author: Dave Brondsema <[email protected]>
AuthorDate: Thu Sep 12 10:44:14 2024 -0400

    for users its better to link to the Activity rss/atom feed instead of 
user-project FeedItem feed
---
 Allura/allura/ext/user_profile/templates/user_index.html           | 4 ++--
 ForgeActivity/forgeactivity/templates/widgets/profile_section.html | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Allura/allura/ext/user_profile/templates/user_index.html 
b/Allura/allura/ext/user_profile/templates/user_index.html
index feace956b..a788d6558 100644
--- a/Allura/allura/ext/user_profile/templates/user_index.html
+++ b/Allura/allura/ext/user_profile/templates/user_index.html
@@ -27,8 +27,8 @@
     {%  if noindex %}
         <meta name="robots" content="noindex, follow">
     {%  endif %}
-    <link rel="alternate" type="application/rss+xml" title="RSS" 
href="feed.rss">
-    <link rel="alternate" type="application/atom+xml" title="Atom" 
href="feed.atom">
+    <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ 
c.user.url() }}activity/feed.rss">
+    <link rel="alternate" type="application/atom+xml" title="Atom" href="{{ 
c.user.url() }}activity/feed.atom">
     {{ canonical_tag() }}
 {%- endblock -%}
 
diff --git a/ForgeActivity/forgeactivity/templates/widgets/profile_section.html 
b/ForgeActivity/forgeactivity/templates/widgets/profile_section.html
index 02d82481d..338e9a28c 100644
--- a/ForgeActivity/forgeactivity/templates/widgets/profile_section.html
+++ b/ForgeActivity/forgeactivity/templates/widgets/profile_section.html
@@ -28,7 +28,7 @@
     {% if c.user and not c.user.is_anonymous() and c.user != user %}
         {{follow_toggle.display(following=following, 
action=activity_app.url+'follow')}}
     {% endif %}
-    {{ g.icons['feed'].render(href='feed.rss', title='RSS', rel='nofollow') }}
+    {{ g.icons['feed'].render(href=c.user.url() + 'activity/feed.rss', 
title='RSS', rel='nofollow') }}
 {% endblock %}
 
 {% block section_class %}activity{% endblock %}

Reply via email to