Fix moved notice on profiles in web UI (#34052)

This commit is contained in:
Eugen Rochko 2025-03-03 09:24:06 +01:00 committed by GitHub
parent d50110a17a
commit d399244d4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 61 additions and 46 deletions

View file

@ -58,8 +58,8 @@ import {
import { getAccountHidden } from 'mastodon/selectors/accounts';
import { useAppSelector, useAppDispatch } from 'mastodon/store';
import MemorialNote from './memorial_note';
import MovedNote from './moved_note';
import { MemorialNote } from './memorial_note';
import { MovedNote } from './moved_note';
const messages = defineMessages({
unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' },
@ -833,7 +833,7 @@ export const AccountHeader: React.FC<{
<div className='account-timeline__header'>
{!hidden && account.memorial && <MemorialNote />}
{!hidden && account.moved && (
<MovedNote from={account} to={account.moved} />
<MovedNote accountId={account.id} targetAccountId={account.moved} />
)}
<div