From 61376a296a208012ea5d774f9a51db0d373d5332 Mon Sep 17 00:00:00 2001 From: RhodeCode Admin Date: Tue, 18 Jul 2023 09:43:05 +0200 Subject: [PATCH] templates: pass in request where possible to avoid threadglobals --- rhodecode/templates/base/base.mako | 2 +- rhodecode/templates/changeset/changeset_file_comment.mako | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rhodecode/templates/base/base.mako b/rhodecode/templates/base/base.mako index 01a6a187..92508166 100644 --- a/rhodecode/templates/base/base.mako +++ b/rhodecode/templates/base/base.mako @@ -233,7 +233,7 @@ with a better solution at some point. - + diff --git a/rhodecode/templates/changeset/changeset_file_comment.mako b/rhodecode/templates/changeset/changeset_file_comment.mako index e03e3654..df9cadfd 100644 --- a/rhodecode/templates/changeset/changeset_file_comment.mako +++ b/rhodecode/templates/changeset/changeset_file_comment.mako @@ -160,7 +160,7 @@ }, comment_version: "${comment_history.version}", comment_author_username: "${comment_history.author.username}", - comment_author_gravatar: "${h.gravatar_url(comment_history.author.email, 16)}", + comment_author_gravatar: "${h.gravatar_url(comment_history.author.email, 16, request=request)}", comment_created_on: '${h.age_component(comment_history.created_on, time_is_local=True)}', }, % endfor