mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-25 21:23:42 +01:00
Fix attachment lists
This commit is contained in:
parent
1ed9500b52
commit
7db431eac6
1 changed files with 7 additions and 5 deletions
|
@ -40,12 +40,14 @@ export default class AttachmentList extends ImmutablePureComponent {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul className='attachment-list__list'>
|
<ul className='attachment-list__list'>
|
||||||
const displayUrl = attachment.get('remote_url') || attachment.get('url');
|
|
||||||
|
|
||||||
{media.map(attachment => {
|
{media.map(attachment => {
|
||||||
return (<li key={attachment.get('id')}>
|
const displayUrl = attachment.get('remote_url') || attachment.get('url');
|
||||||
<a href={displayUrl} target='_blank' rel='noopener'>{filename(displayUrl)}</a>
|
|
||||||
</li>)
|
return (
|
||||||
|
<li key={attachment.get('id')}>
|
||||||
|
<a href={displayUrl} target='_blank' rel='noopener'>{filename(displayUrl)}</a>
|
||||||
|
</li>
|
||||||
|
);
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue