Merge pull request #403 from ThibG/glitch-soc/fixes/attachment-lists-fixup

Fix attachment lists
master
David Yip 7 years ago committed by GitHub
commit d37a79adce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      app/javascript/flavours/glitch/components/attachment_list.js

@ -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…
Cancel
Save