forgejo/models
Giteabot 09efce9da2
enable system users for comment.LoadPoster (#28014) (#28032)
Backport #28014 by @earl-warren

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 6a2d2fa243)

Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
2023-11-14 14:50:05 +01:00
..
actions Remove action runners on user deletion (#27902) (#27908) 2023-11-05 13:20:00 +00:00
activities
admin
asymkey Respect SSH.KeygenPath option when calculating ssh key fingerprints (#27536) (#27551) 2023-10-10 07:37:58 +00:00
auth Fix wrong xorm Delete usage(backport for 1.21) (#28002) 2023-11-12 12:58:22 +00:00
avatars Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
db
dbfs
fixtures
git Upgrade xorm to 1.3.4 (#27807) (#27813) 2023-10-27 14:17:27 +02:00
issues enable system users for comment.LoadPoster (#28014) (#28032) 2023-11-14 14:50:05 +01:00
migrations Restore warning commit status (#27504) (#27529) 2023-10-09 11:56:02 +08:00
organization
packages
perm
project
pull
repo Delete repos of org when purge delete user (#27273) (#27728) 2023-11-01 10:03:12 +08:00
secret
shared/types
system Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
unit
unittest Upgrade xorm (#27673) (#27691) 2023-10-19 10:56:39 +00:00
user Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
repo_test.go
repo_transfer.go
repo_transfer_test.go