pass group down from group timeline and hide group section of status component

This commit is contained in:
2458773093
2019-07-26 21:28:26 +03:00
parent 7503d5728e
commit c4ca0b9d4d
3 changed files with 7 additions and 3 deletions

View File

@@ -88,6 +88,7 @@ class Status extends ImmutablePureComponent {
updateScrollBottom: PropTypes.func,
cacheMediaWidth: PropTypes.func,
cachedMediaWidth: PropTypes.number,
group: ImmutablePropTypes.map,
};
// Avoid checking props that are functions (and whose equality will always
@@ -257,7 +258,7 @@ class Status extends ImmutablePureComponent {
let media = null;
let statusAvatar, prepend, rebloggedByText, reblogContent;
const { intl, hidden, featured, otherAccounts, unread, showThread } = this.props;
const { intl, hidden, featured, otherAccounts, unread, showThread, group } = this.props;
let { status, account, ...other } = this.props;
@@ -426,7 +427,7 @@ class Status extends ImmutablePureComponent {
</NavLink>
</div>
{status.get('group') && (
{!group && status.get('group') && (
<div className='status__meta'>
Posted in <NavLink to={`/groups/${status.getIn(['group', 'id'])}`}>{status.getIn(['group', 'title'])}</NavLink>
</div>