mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-16 15:16:38 +00:00
Merge pull request #403 from ThibG/glitch-soc/fixes/attachment-lists-fixup
Fix attachment lists
This commit is contained in:
commit
d37a79adce
|
@ -40,12 +40,14 @@ export default class AttachmentList extends ImmutablePureComponent {
|
|||
</div>
|
||||
|
||||
<ul className='attachment-list__list'>
|
||||
const displayUrl = attachment.get('remote_url') || attachment.get('url');
|
||||
|
||||
{media.map(attachment => {
|
||||
return (<li key={attachment.get('id')}>
|
||||
<a href={displayUrl} target='_blank' rel='noopener'>{filename(displayUrl)}</a>
|
||||
</li>)
|
||||
const displayUrl = attachment.get('remote_url') || attachment.get('url');
|
||||
|
||||
return (
|
||||
<li key={attachment.get('id')}>
|
||||
<a href={displayUrl} target='_blank' rel='noopener'>{filename(displayUrl)}</a>
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue