forkjo/models/issues
Earl Warren 6a2d2fa243
[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)
(cherry picked from commit aeb9a2c2b8)
(cherry picked from commit 0bfac925c2)
(cherry picked from commit bb78cdcec0)
2023-11-13 14:09:43 +01:00
..
assignees.go
assignees_test.go
comment.go [GITEA] enable system users for comment.LoadPoster 2023-11-13 14:09:43 +01:00
comment_code.go
comment_list.go
comment_test.go
content_history.go
content_history_test.go
dependency.go
dependency_test.go
issue.go [FEAT] allow setting the update date on issues and comments 2023-11-13 12:21:09 +01:00
issue_index.go
issue_label.go
issue_label_test.go
issue_list.go
issue_list_test.go
issue_lock.go
issue_project.go Clean some functions about project issue (#27705) 2023-10-20 14:01:25 +02:00
issue_search.go Fix issue not showing on default board and add test (#27720) 2023-10-25 11:51:49 +00:00
issue_stats.go
issue_test.go Show total TrackedTime on issue/pull/milestone lists (#26672) 2023-10-19 14:08:31 +00:00
issue_update.go [FEAT] allow setting the update date on issues and comments 2023-11-13 12:21:09 +01:00
issue_user.go
issue_user_test.go
issue_watch.go
issue_watch_test.go
issue_xref.go [FEAT] allow setting the update date on issues and comments 2023-11-13 12:21:09 +01:00
issue_xref_test.go
label.go
label_test.go
main_test.go
milestone.go [FEAT] allow setting the update date on issues and comments 2023-11-13 12:21:09 +01:00
milestone_list.go
milestone_test.go
pull.go Replace -1 with GhostUserID (#27703) 2023-10-20 14:43:08 +00:00
pull_list.go
pull_test.go
reaction.go
reaction_test.go
review.go Fix 500 when deleting a dismissed review (#27903) 2023-11-05 13:25:40 +00:00
review_list.go
review_test.go Fix 500 when deleting a dismissed review (#27903) 2023-11-05 13:25:40 +00:00
stopwatch.go
stopwatch_test.go
tracked_time.go Show total TrackedTime on issue/pull/milestone lists (#26672) 2023-10-19 14:08:31 +00:00
tracked_time_test.go Show total TrackedTime on issue/pull/milestone lists (#26672) 2023-10-19 14:08:31 +00:00