Making the "media gallery" not show up on Articles
When we fetch Articles, we render images inline as intended by the Article. There is no need for a Media Gallery item.
This commit is contained in:
parent
73bdd71e09
commit
160c575c8b
|
@ -498,7 +498,7 @@ class Status extends ImmutablePureComponent {
|
||||||
|
|
||||||
<StatusContent status={status} onClick={this.handleClick} expanded={!status.get('hidden')} showThread={showThread} onExpandedToggle={this.handleExpandedToggle} collapsable onCollapsedToggle={this.handleCollapsedToggle} />
|
<StatusContent status={status} onClick={this.handleClick} expanded={!status.get('hidden')} showThread={showThread} onExpandedToggle={this.handleExpandedToggle} collapsable onCollapsedToggle={this.handleCollapsedToggle} />
|
||||||
|
|
||||||
{media}
|
{status.get('activity_pub_type') === 'Article' ? null : media}
|
||||||
|
|
||||||
<StatusActionBar scrollKey={scrollKey} status={status} account={account} {...other} />
|
<StatusActionBar scrollKey={scrollKey} status={status} account={account} {...other} />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -264,7 +264,7 @@ class DetailedStatus extends ImmutablePureComponent {
|
||||||
|
|
||||||
<StatusContent status={status} expanded={status.get('activity_pub_type') === 'Article' || !status.get('hidden')} onExpandedToggle={this.handleExpandedToggle} />
|
<StatusContent status={status} expanded={status.get('activity_pub_type') === 'Article' || !status.get('hidden')} onExpandedToggle={this.handleExpandedToggle} />
|
||||||
|
|
||||||
{media}
|
{status.get('activity_pub_type') === 'Article' ? null : media}
|
||||||
|
|
||||||
<div className='detailed-status__meta'>
|
<div className='detailed-status__meta'>
|
||||||
<a className='detailed-status__datetime' href={status.get('url')} target='_blank' rel='noopener noreferrer'>
|
<a className='detailed-status__datetime' href={status.get('url')} target='_blank' rel='noopener noreferrer'>
|
||||||
|
|
Loading…
Reference in New Issue