1
0
Fork 0
codeberg-forgejo/tests
Earl Warren 5aad8a6918
[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 97667e06b384d834a04eaa05e8f91563481709b1)
2023-09-12 11:02:07 +02:00
..
e2e Rewrite logger system (#24726) 2023-05-21 22:35:11 +00:00
fuzz Move fuzz tests into tests/fuzz (#22376) 2023-01-09 15:30:14 +08:00
gitea-lfs-meta Test views of LFS files (#22196) 2022-12-23 07:41:56 +08:00
gitea-repositories-meta Fix bug of branches API with tests(#25578) (#25579) 2023-07-03 16:17:30 +02:00
integration [GITEA] enable system users for comment.LoadPoster 2023-09-12 11:02:07 +02:00
mssql.ini.tmpl Do not use deprecated log config options by default (#26592) (#26600) 2023-08-21 07:27:20 +02:00
mysql.ini.tmpl Do not use deprecated log config options by default (#26592) (#26600) 2023-08-21 07:27:20 +02:00
mysql8.ini.tmpl Do not use deprecated log config options by default (#26592) (#26600) 2023-08-21 07:27:20 +02:00
pgsql.ini.tmpl Do not use deprecated log config options by default (#26592) (#26600) 2023-08-21 07:27:20 +02:00
sqlite.ini.tmpl Do not use deprecated log config options by default (#26592) (#26600) 2023-08-21 07:27:20 +02:00
test_utils.go Replace `interface{}` with `any` (#25686) (#25687) 2023-07-04 23:41:32 -04:00