forgejo/models
Earl Warren 8ef73a09c9
[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)
2023-09-18 16:15:52 +02:00
..
actions [CLI] implement forgejo-cli 2023-09-18 13:25:11 +02:00
activities Reduce usage of db.DefaultContext (#27073) 2023-09-14 17:09:32 +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-18 15:40:46 +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-18 15:43:04 +02:00
dbfs
fixtures [GITEA] Improve HTML title on repositories 2023-09-18 15:43:04 +02:00
forgejo/semver [UPGRADE] add sanity checks for [storage*] 2023-09-18 14:00:12 +02:00
forgejo_migrations [SEMVER] store SemVer in ForgejoSemVer after a database upgrade 2023-09-18 14:00:11 +02:00
git Search branches (#27055) 2023-09-17 08:24:40 +00:00
issues [GITEA] enable system users for comment.LoadPoster 2023-09-18 16:15:52 +02:00
migrations [UPGRADE] run sanity checks before the database is upgraded 2023-09-18 14:00:12 +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 Refactor project templates (#26448) 2023-08-12 10:30:28 +00:00
pull
repo [GITEA] Improve HTML title on repositories 2023-09-18 15:43:04 +02:00
secret Refactor secrets modification logic (#26873) 2023-09-05 15:21:02 +00:00
shared/types
system Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 2023-09-11 10:14:01 +00:00
unit Use Set[Type] instead of map[Type]bool/struct{}. (#26804) 2023-08-30 06:55:25 +00:00
unittest
user [GITEA] enable system users search via the API 2023-09-18 16:15:52 +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