mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 01:05:14 +00:00
Fix gitea-action user avatar broken on edited menu (#29190)
Fix #29178 (cherry picked from commit 8e2831611c06e84dd8fedf7a0b2cce9f98d4188f)
This commit is contained in:
parent
800fa60ee5
commit
78f6b29248
|
@ -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