0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-22 08:04:33 +01:00
gitea/routers/web
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
..
admin Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
auth Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
events
explore Remove ONLY_SHOW_RELEVANT_REPOS setting (#21962) 2023-02-04 21:26:38 +08:00
feed 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
healthcheck
misc
org Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
repo fix incorrect role labels for migrated issues and comments (#22914) 2023-02-15 12:29:13 -05:00
shared Add Cargo package registry (#21888) 2023-02-05 18:12:31 +08:00
user Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00
auth_windows.go
auth.go
base.go
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Map OIDC groups to Orgs/Teams (#21441) 2023-02-08 14:44:42 +08:00
webfinger.go Add context cache as a request level cache (#22294) 2023-02-15 21:37:34 +08:00