Account Media: Filter non-owned media for other users

This commit is contained in:
Alex Gleason 2020-06-12 20:47:43 -05:00
parent 741b27195e
commit 3179eacadd
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -141,7 +141,7 @@ export const getAccountGallery = createSelector([
return statusIds.reduce((medias, statusId) => {
const status = statuses.get(statusId);
const account = accounts.get(status.get('account'));
if (status.get('reblogged') !== false) return medias;
if (status.get('reblog')) return medias;
return medias.concat(status.get('media_attachments')
.map(media => media.merge({ status, account })));
}, ImmutableList());