You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
1 year ago
..
actions Fix ref to trigger Actions (#22679) 1 year ago
activities Add context cache as a request level cache (#22294) 1 year ago
admin Implement FSFE REUSE for golang files (#21840) 2 years ago
asymkey Add context cache as a request level cache (#22294) 1 year ago
auth Support scoped access tokens (#20908) 1 year ago
avatars Add context cache as a request level cache (#22294) 1 year ago
db Move delete user to service (#22478) 1 year ago
dbfs Add some comments for recent code (#22725) 1 year ago
fixtures Do not overwrite empty DefaultBranch (#22708) 1 year ago
git Add context cache as a request level cache (#22294) 1 year ago
issues fix incorrect role labels for migrated issues and comments (#22914) 1 year ago
migrations Fix migration issue. (#22867) 1 year ago
organization Add context cache as a request level cache (#22294) 1 year ago
packages Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 1 year ago
perm Rename almost all Ctx functions (#22071) 2 years ago
project Preview images for Issue cards in Project Board view (#22112) 1 year ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Add context cache as a request level cache (#22294) 1 year ago
secret Secrets storage with SecretKey encrypted (#22142) 2 years ago
system Add context cache as a request level cache (#22294) 1 year ago
unit Repositories: by default disable all units except code and pulls on forks (#22541) 1 year ago
unittest Implement actions (#21937) 1 year ago
user Add context cache as a request level cache (#22294) 1 year ago
webhook Support system hook API (#14537) 1 year ago
error.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
migrate.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
migrate_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Supports wildcard protected branch (#20825) 1 year ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Implement actions (#21937) 1 year ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo_collaboration_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Always reuse transaction (#22362) 1 year ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago