0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-19 21:02:34 -05:00
forgejo/models/issues
Earl Warren 7fb032c240
[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)
(cherry picked from commit fa8a00d264)
(cherry picked from commit 2ada2074b5)
(cherry picked from commit f9a59b940a)
(cherry picked from commit cd82834043)
2023-10-16 17:25:37 +02:00
..
assignees.go
assignees_test.go
comment.go [GITEA] enable system users for comment.LoadPoster 2023-10-16 17:25:37 +02:00
comment_code.go More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
comment_list.go Add logs for data broken of comment review (#27326) (#27345) 2023-09-29 13:31:13 +08:00
comment_test.go More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
content_history.go
content_history_test.go
dependency.go
dependency_test.go
issue.go [v1.21] [FEAT] allow setting the update date on issues and comments 2023-10-16 15:50:17 +02:00
issue_index.go
issue_label.go Don't let API add 2 exclusive labels from same scope (#27433) (#27460) 2023-10-06 05:06:31 +08:00
issue_label_test.go Don't let API add 2 exclusive labels from same scope (#27433) (#27460) 2023-10-06 05:06:31 +08:00
issue_list.go
issue_list_test.go
issue_lock.go
issue_project.go
issue_search.go
issue_stats.go
issue_test.go More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
issue_update.go [v1.21] [FEAT] allow setting the update date on issues and comments 2023-10-16 15:50:17 +02:00
issue_user.go
issue_user_test.go
issue_watch.go
issue_watch_test.go
issue_xref.go [v1.21] [FEAT] allow setting the update date on issues and comments 2023-10-16 15:50:17 +02:00
issue_xref_test.go
label.go
label_test.go
main_test.go
milestone.go [v1.21] [FEAT] allow setting the update date on issues and comments 2023-10-16 15:50:17 +02:00
milestone_list.go
milestone_test.go
pull.go
pull_list.go
pull_test.go
reaction.go
reaction_test.go
review.go More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
review_list.go
review_test.go More db.DefaultContext refactor (#27265) (#27347) 2023-09-29 13:35:01 +00:00
stopwatch.go
stopwatch_test.go
tracked_time.go
tracked_time_test.go