gitea/models
Zettat123 0ab22a1a02
fix incorrect role labels for migrated issues and comments (#22914)
Fix #22797.

## Reason
If a comment was migrated from other platforms, this comment may have an
original author and its poster is always not the original author. When
the `roleDescriptor` func get the poster's role descriptor for a
comment, it does not check if the comment has an original author. So the
migrated comments' original authors might be marked as incorrect roles.

---------

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-02-15 12:29:13 -05:00
..
actions Fix ref to trigger Actions (#22679) 2023-01-31 22:45:25 +00:00
activities Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
admin
asymkey Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
auth
avatars Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
db Move delete user to service (#22478) 2023-02-13 13:11:41 +08:00
dbfs Add some comments for recent code (#22725) 2023-02-02 11:39:38 -06:00
fixtures Do not overwrite empty DefaultBranch (#22708) 2023-02-02 14:48:48 -06:00
git Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
issues fix incorrect role labels for migrated issues and comments (#22914) 2023-02-15 12:29:13 -05:00
migrations Fix migration issue. (#22867) 2023-02-11 21:28:41 +00:00
organization Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
packages Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2023-02-06 12:09:18 -06:00
perm
project Preview images for Issue cards in Project Board view (#22112) 2023-02-11 16:12:41 +08:00
pull
repo Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
secret
system Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
unit Repositories: by default disable all units except code and pulls on forks (#22541) 2023-02-04 14:48:38 +08:00
unittest Implement actions (#21937) 2023-01-31 09:45:19 +08:00
user Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
webhook
error.go
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
fixture_test.go
main_test.go
migrate.go
migrate_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go Implement actions (#21937) 2023-01-31 09:45:19 +08:00
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go