summaryrefslogtreecommitdiffstats
path: root/routers/api/v1
diff options
context:
space:
mode:
authorEarl Warren <109468362+earl-warren@users.noreply.github.com>2023-11-13 15:30:08 +0100
committerGitHub <noreply@github.com>2023-11-13 15:30:08 +0100
commitf2ea31de36ec777a84f32dfdb242da2a3d9f1fc8 (patch)
tree164ac43538f8002fce213500353251ce0aea84e6 /routers/api/v1
parent0678c822653975c7fcf40371f2c39dd14254aa2a (diff)
downloadgitea-f2ea31de36ec777a84f32dfdb242da2a3d9f1fc8.tar.gz
gitea-f2ea31de36ec777a84f32dfdb242da2a3d9f1fc8.zip
Enable system users for comment.LoadPoster (#28014)
System users (Ghost, ActionsUser, etc) have a negative id and may be the author of a comment, either because it was created by a now deleted user or via an action using a transient token. The GetPossibleUserByID function has special cases related to system users and will not fail if given a negative id. Refs: https://codeberg.org/forgejo/forgejo/issues/1425 (cherry picked from commit 6a2d2fa24390116d31ae2507c0a93d423f690b7b)
Diffstat (limited to 'routers/api/v1')
0 files changed, 0 insertions, 0 deletions