forgejo/routers
Yarden Shoham af6700152c
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-17 01:18:06 -07:00
..
api [BRANDING] Update nodeinfo branding 2023-02-12 00:20:17 +01:00
common Add support for HEAD requests in Maven registry (#21834) (#21929) 2022-11-25 13:46:28 +02:00
install [BRANDING] Rebrand default config settings for new installs (#140) 2023-02-12 00:18:40 +01:00
private Fix missing message in git hook when pull requests disabled on fork (#22625) (#22658) 2023-01-30 08:55:45 +08:00
utils refactor webhook *NewPost (#20729) 2022-08-11 17:48:23 +02:00
web fix incorrect role labels for migrated issues and comments (#22914) (#22923) 2023-02-17 01:18:06 -07:00
init.go [API] Forgejo API /api/forgejo/v1 2023-02-11 17:34:40 +01:00