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

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

commit b572657a8b34a63ef17286326d94f0610f1eef5e
Author: Guillermo Cruz <[email protected]>
AuthorDate: Thu Nov 16 14:08:40 2023 -0700

    [#8527] display thread subject instead of app name and tool label in header
---
 Allura/allura/controllers/discuss.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Allura/allura/controllers/discuss.py 
b/Allura/allura/controllers/discuss.py
index 5756ec9c6..18d0aaaa0 100644
--- a/Allura/allura/controllers/discuss.py
+++ b/Allura/allura/controllers/discuss.py
@@ -204,6 +204,7 @@ class ThreadController(BaseController, FeedController, 
metaclass=h.ProxiedAttrMe
         c.thread_header = self.W.thread_header
         limit, page, start = g.handle_paging(limit, page)
         self.thread.num_views += 1
+        h1_text = f'{(self.thread.subject or 
c.app.config.options.mount_label)[:100]}'
         # the update to num_views shouldn't affect it
         M.session.artifact_orm_session._get().skip_mod_date = True
         M.session.artifact_orm_session._get().skip_last_updated = True
@@ -216,7 +217,7 @@ class ThreadController(BaseController, FeedController, 
metaclass=h.ProxiedAttrMe
                     thread=self.thread,
                     page=int(page),
                     count=int(count),
-                    limit=int(limit),
+                    limit=int(limit), h1_text=h1_text,
                     show_moderate=kw.get('show_moderate'))
 
     def error_handler(self, *args, **kwargs):

Reply via email to