1
0
Fork 0
forked from gitea/nas

Change author_account to be authors in REST API (#30846)

This commit is contained in:
Eugen Rochko 2024-06-27 15:17:18 +02:00 committed by GitHub
parent 6d1c1fd684
commit 096057b845
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 48 additions and 9 deletions

View file

@ -8,6 +8,10 @@ import { useAppSelector } from 'mastodon/store';
export const AuthorLink = ({ accountId }) => {
const account = useAppSelector(state => state.getIn(['accounts', accountId]));
if (!account) {
return null;
}
return (
<Link to={`/@${account.get('acct')}`} className='story__details__shared__author-link' data-hover-card-account={accountId}>
<Avatar account={account} size={16} />