0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-23 14:49:09 -05:00
forgejo/routers/web
Yarden Shoham 9e68261ca7
fix incorrect role labels for migrated issues and comments (#22914) (#22923)
Backport #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: Zettat123 <zettat123@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-02-16 11:19:46 +08:00
..
admin Set disable_gravatar/enable_federated_avatar when offline mode is true (#22479) (#22496) 2023-01-18 10:30:34 -06:00
auth Set last login when activating account (#21731) (#21755) 2022-11-11 01:26:17 -05:00
dev
events
explore Fix sorting admin user list by last login (#22081) (#22107) 2022-12-13 16:37:33 -06:00
feed Fix setting HTTP headers after write (#21833) (#21877) 2022-11-22 09:00:42 +08:00
healthcheck
misc
org Fix leaving organization bug on user settings -> orgs (#21983) (#22438) 2023-01-16 01:29:27 +02:00
repo fix incorrect role labels for migrated issues and comments (#22914) (#22923) 2023-02-16 11:19:46 +08:00
user fix: code search title translation (#22285) (#22316) 2023-01-03 11:33:55 +08:00
auth.go
auth_windows.go
base.go Share HTML template renderers and create a watcher framework (#20218) 2022-08-28 10:43:25 +01:00
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Fix permission check on issue/pull lock (#22113) 2022-12-12 20:59:50 +01:00
webfinger.go