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:
Darius Kazemi 2022-12-01 21:07:04 -08:00
parent 73bdd71e09
commit 160c575c8b
2 changed files with 2 additions and 2 deletions

View File

@ -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} />
{media}
{status.get('activity_pub_type') === 'Article' ? null : media}
<StatusActionBar scrollKey={scrollKey} status={status} account={account} {...other} />
</div>

View File

@ -264,7 +264,7 @@ class DetailedStatus extends ImmutablePureComponent {
<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'>
<a className='detailed-status__datetime' href={status.get('url')} target='_blank' rel='noopener noreferrer'>