only show public attachments in profile media panel
This commit is contained in:
parent
422588178a
commit
2f24577e7f
1 changed files with 2 additions and 5 deletions
|
@ -43,11 +43,8 @@ class ProfileMediaPanel extends ImmutablePureComponent {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { attachments, account } = this.props;
|
const { attachments, account } = this.props;
|
||||||
const nineAttachments = attachments.slice(0, 9);
|
const publicAttachments = attachments.filter(attachment => attachment.getIn(['status', 'visibility']) === 'public');
|
||||||
//
|
const nineAttachments = publicAttachments.slice(0, 9);
|
||||||
// if (attachments.isEmpty()) {
|
|
||||||
// return null;
|
|
||||||
// }
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='media-panel'>
|
<div className='media-panel'>
|
||||||
|
|
Loading…
Reference in a new issue