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 6dfc5b981 fixup! [#8443] nofollow on links that point to code tool
repositories
6dfc5b981 is described below
commit 6dfc5b9813e77d32d65c474da585a28e8db6a830
Author: Guillermo Cruz <[email protected]>
AuthorDate: Mon Jun 27 11:14:59 2022 -0600
fixup! [#8443] nofollow on links that point to code tool repositories
---
Allura/allura/model/project.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Allura/allura/model/project.py b/Allura/allura/model/project.py
index 0fc0e7529..b16e5cd64 100644
--- a/Allura/allura/model/project.py
+++ b/Allura/allura/model/project.py
@@ -337,9 +337,9 @@ class Project(SearchIndexable, MappedClass, ActivityNode,
ActivityObject):
def get_tool_data(self, tool, key, default=None):
return self.tool_data.get(tool, {}).get(key, default)
- def noindex_tool_name(self, activity_url, tools=None):
+ def noindex_tool_name(self, activity_url):
noindex_tool_names = ['git', 'svn', 'hg']
- tools = self.app_configs if tools is None else tools
+ tools = self.app_configs
for c in tools:
if hasattr(c, 'tool_name') and c.tool_name in noindex_tool_names:
if c.options.mount_point in activity_url: