0
0
Fork 0

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

@ -138,7 +138,7 @@ export default class Card extends PureComponent {
const interactive = card.get('type') === 'video';
const language = card.get('language') || '';
const largeImage = (card.get('image')?.length > 0 && card.get('width') > card.get('height')) || interactive;
const showAuthor = !!card.get('author_account');
const showAuthor = !!card.getIn(['authors', 0, 'accountId']);
const description = (
<div className='status-card__content'>
@ -244,7 +244,7 @@ export default class Card extends PureComponent {
{description}
</a>
{showAuthor && <MoreFromAuthor accountId={card.get('author_account')} />}
{showAuthor && <MoreFromAuthor accountId={card.getIn(['authors', 0, 'accountId'])} />}
</>
);
}