forgejo/models
Earl Warren fa8a00d264
[GITEA] enable system users for comment.LoadPoster
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 97667e06b3)
(cherry picked from commit 8ef73a09c9)
2023-09-25 20:44:13 +02:00
..
actions [CLI] implement forgejo-cli 2023-09-25 15:24:38 +02:00
activities Quote table release in sql queries (#27205) 2023-09-23 12:57:39 +00:00
admin Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
asymkey Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
auth [GITEA] silently ignore obsolete sudo scope 2023-09-25 20:28:30 +02:00
avatars Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 2023-09-11 10:14:01 +00:00
db [GITEA] Add slow SQL query warning 2023-09-25 20:43:17 +02:00
dbfs
fixtures [GITEA] Improve HTML title on repositories 2023-09-25 20:43:07 +02:00
forgejo/semver [UPGRADE] add sanity checks for [storage*] 2023-09-25 16:02:39 +02:00
forgejo_migrations [SEMVER] store SemVer in ForgejoSemVer after a database upgrade 2023-09-25 16:02:39 +02:00
git Updates to the API for archived repos (#27149) 2023-09-21 23:43:29 +00:00
issues [GITEA] enable system users for comment.LoadPoster 2023-09-25 20:44:13 +02:00
migrations [UPGRADE] run sanity checks before the database is upgraded 2023-09-25 16:02:39 +02:00
organization Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
packages move repository deletion to service layer (#26948) 2023-09-08 04:51:15 +00:00
perm move repository deletion to service layer (#26948) 2023-09-08 04:51:15 +00:00
project
pull
repo [GITEA] Improve HTML title on repositories 2023-09-25 20:43:07 +02:00
secret
shared/types
system Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 2023-09-11 10:14:01 +00:00
unit
unittest
user [GITEA] enable system users search via the API 2023-09-25 20:44:13 +02:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go move repository deletion to service layer (#26948) 2023-09-08 04:51:15 +00:00
org.go
org_team.go Use db.WithTx for AddTeamMember to avoid ctx abuse (#27095) 2023-09-16 12:54:23 +00:00
org_team_test.go Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +00:00
org_test.go
repo.go move repository deletion to service layer (#26948) 2023-09-08 04:51:15 +00:00
repo_test.go
repo_transfer.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00
repo_transfer_test.go Next round of db.DefaultContext refactor (#27089) 2023-09-16 14:39:12 +00:00