0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 13:04:34 +01:00
gitea/models
Earl Warren f2ea31de36
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)
2023-11-13 15:30:08 +01:00
..
actions Remove action runners on user deletion (#27902) 2023-11-05 13:48:32 +01:00
activities Refactor Find Sources and fix bug when view a user who belongs to an unactive auth source (#27798) 2023-11-03 01:41:00 +00:00
admin
asymkey
auth Fix wrong xorm Delete usage (#27995) 2023-11-12 07:38:45 +00:00
avatars
db
dbfs
fixtures
git
issues Enable system users for comment.LoadPoster (#28014) 2023-11-13 15:30:08 +01:00
migrations Add Index to pull_auto_merge.doer_id (#27811) 2023-10-30 08:39:29 +00:00
organization
packages List all Debian package versions in Packages (#27786) 2023-10-29 14:14:47 +00:00
perm
project
pull Add Index to pull_auto_merge.doer_id (#27811) 2023-10-30 08:39:29 +00:00
repo
secret
shared/types
system
unit
unittest
user
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go Refactor the function RemoveOrgUser (#27582) 2023-11-03 14:01:45 +00:00
org_team.go Refactor the function RemoveOrgUser (#27582) 2023-11-03 14:01:45 +00:00
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go