mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-01 17:38:33 +00:00
Do not add links to Posters or Assignees with ID < 0 (#20577)
There are several places in templates/repo/issue/view_content/comments.tmpl where links are made to Posters or Assignees who are Ghosts or have IDs <0. Fix #20559 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
parent
18046eb91e
commit
de7b87fbc2
7 changed files with 76 additions and 128 deletions
3
templates/shared/user/authorlink.tmpl
Normal file
3
templates/shared/user/authorlink.tmpl
Normal file
|
@ -0,0 +1,3 @@
|
|||
<a class="author"{{if gt .ID 0}} href="{{.HomeLink}}"{{end}}>
|
||||
{{.GetDisplayName}}
|
||||
</a>
|
3
templates/shared/user/avatarlink.tmpl
Normal file
3
templates/shared/user/avatarlink.tmpl
Normal file
|
@ -0,0 +1,3 @@
|
|||
<a class="avatar"{{if gt .ID 0}} href="{{.HomeLink}}"{{end}}>
|
||||
{{avatar .}}
|
||||
</a>
|
3
templates/shared/user/namelink.tmpl
Normal file
3
templates/shared/user/namelink.tmpl
Normal file
|
@ -0,0 +1,3 @@
|
|||
<a{{if gt .ID 0}} href="{{.HomeLink}}"{{end}}>
|
||||
{{.GetDisplayName}}
|
||||
</a>
|
Loading…
Add table
Add a link
Reference in a new issue