summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-02-17 01:20:53 +0800
committerGitHub <noreply@github.com>2023-02-16 11:20:53 -0600
commitf196da12dba17e7e9f51b6eae728e5473aa5f485 (patch)
tree3ec64bd53833e7b8e8d086f30fd22666fecd8883 /templates
parentaa45777c926adba2bbe9e269960476acf55abb33 (diff)
downloadgitea-f196da12dba17e7e9f51b6eae728e5473aa5f485.tar.gz
gitea-f196da12dba17e7e9f51b6eae728e5473aa5f485.zip
Fix context bug (#22940)
Fix https://try.gitea.io/wxiaoguang/test/issues/19
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content/comments.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index 8cef673a7e..5bd5c8b48e 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -213,7 +213,7 @@
{{end}}
</span>
{{else}}
- {{template "shared/user/avatarlink" "user" .Assignee}}
+ {{template "shared/user/avatarlink" Dict "Context" $.Context "user" .Assignee}}
<span class="text grey muted-links">
{{template "shared/user/authorlink" .Assignee}}
{{if eq .Poster.ID .AssigneeID}}