mirror of
https://github.com/glitch-soc/mastodon
synced 2025-04-24 14:14:51 +00:00
|Glitch] Fix "Feature on profile" option on profile dropdown menu in web UI
Port f47ad7814a
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
c0bb21ecd8
commit
baa3cd2734
1 changed files with 2 additions and 4 deletions
|
@ -499,9 +499,7 @@ export const AccountHeader: React.FC<{
|
|||
|
||||
arr.push({
|
||||
text: intl.formatMessage(
|
||||
account.getIn(['relationship', 'endorsed'])
|
||||
? messages.unendorse
|
||||
: messages.endorse,
|
||||
relationship.endorsed ? messages.unendorse : messages.endorse,
|
||||
),
|
||||
action: handleEndorseToggle,
|
||||
});
|
||||
|
@ -759,7 +757,7 @@ export const AccountHeader: React.FC<{
|
|||
badges.push(<GroupBadge key='group-badge' />);
|
||||
}
|
||||
|
||||
account.get('roles', []).forEach((role) => {
|
||||
account.roles.forEach((role) => {
|
||||
badges.push(
|
||||
<Badge
|
||||
key={`role-badge-${role.get('id')}`}
|
||||
|
|
Loading…
Add table
Reference in a new issue