mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix attachment lists
This commit is contained in:
parent
1ed9500b52
commit
7db431eac6
@ -40,12 +40,14 @@ export default class AttachmentList extends ImmutablePureComponent {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul className='attachment-list__list'>
|
<ul className='attachment-list__list'>
|
||||||
|
{media.map(attachment => {
|
||||||
const displayUrl = attachment.get('remote_url') || attachment.get('url');
|
const displayUrl = attachment.get('remote_url') || attachment.get('url');
|
||||||
|
|
||||||
{media.map(attachment => {
|
return (
|
||||||
return (<li key={attachment.get('id')}>
|
<li key={attachment.get('id')}>
|
||||||
<a href={displayUrl} target='_blank' rel='noopener'>{filename(displayUrl)}</a>
|
<a href={displayUrl} target='_blank' rel='noopener'>{filename(displayUrl)}</a>
|
||||||
</li>)
|
</li>
|
||||||
|
);
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user