mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 18:24:14 +01:00
Backport #29190 Fix #29178 (cherry picked from commit f80ea95eb538decad4d982ce96f640b18e430393)
This commit is contained in:
parent
3a061083d6
commit
47e70bbf0e
1 changed files with 5 additions and 1 deletions
|
@ -161,7 +161,11 @@ func FetchIssueContentHistoryList(dbCtx context.Context, issueID, commentID int6
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, item := range res {
|
for _, item := range res {
|
||||||
item.UserAvatarLink = avatars.GenerateUserAvatarFastLink(item.UserName, 0)
|
if item.UserID > 0 {
|
||||||
|
item.UserAvatarLink = avatars.GenerateUserAvatarFastLink(item.UserName, 0)
|
||||||
|
} else {
|
||||||
|
item.UserAvatarLink = avatars.DefaultAvatarLink()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return res, nil
|
return res, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue