You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by gc...@apache.org on 2022/06/27 21:01:58 UTC

[allura] branch gc/8443 updated: fixup! fixup! [#8443] nofollow on links that point to code tool repositories

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

gcruz pushed a commit to branch gc/8443
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/gc/8443 by this push:
     new c41540985 fixup! fixup! [#8443] nofollow on links that point to code tool repositories
c41540985 is described below

commit c41540985d025d72b4ed40a90a025eaa342e4dbd
Author: Guillermo Cruz <gu...@slashdotmedia.com>
AuthorDate: Mon Jun 27 15:01:48 2022 -0600

    fixup! fixup! [#8443] nofollow on links that point to code tool repositories
---
 ForgeActivity/forgeactivity/main.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ForgeActivity/forgeactivity/main.py b/ForgeActivity/forgeactivity/main.py
index 986102fa3..d708dacb6 100644
--- a/ForgeActivity/forgeactivity/main.py
+++ b/ForgeActivity/forgeactivity/main.py
@@ -148,6 +148,7 @@ class ForgeActivityController(BaseController):
                     t.actor.activity_extras.icon_url = re.sub(r'([&?])d=[^&]*',
                                                               r'\1d={}'.format(default_avatar),
                                                               t.actor.activity_extras.icon_url)
+            activity_obj = get_activity_object(t.obj)
             t.obj.noindex = followee.noindex_tool_name(activity_obj.activity_url)
             session(t).expunge(t)  # don't save back these changes