mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Do not show media attachment as og:image if it was marked as NSFW (#1693)
This commit is contained in:
parent
093879c177
commit
447b8bc44e
@ -11,7 +11,7 @@
|
|||||||
- else
|
- else
|
||||||
%meta{ property: 'og:description', content: @stream_entry.activity.content }/
|
%meta{ property: 'og:description', content: @stream_entry.activity.content }/
|
||||||
|
|
||||||
- if @stream_entry.activity.is_a?(Status) && @stream_entry.activity.media_attachments.size > 0
|
- if @stream_entry.activity.is_a?(Status) && !@stream_entry.activity.sensitive? && @stream_entry.activity.media_attachments.size > 0
|
||||||
%meta{ property: 'og:image', content: full_asset_url(@stream_entry.activity.media_attachments.first.file.url(:small)) }/
|
%meta{ property: 'og:image', content: full_asset_url(@stream_entry.activity.media_attachments.first.file.url(:small)) }/
|
||||||
- else
|
- else
|
||||||
%meta{ property: 'og:image', content: full_asset_url(@account.avatar.url(:original)) }/
|
%meta{ property: 'og:image', content: full_asset_url(@account.avatar.url(:original)) }/
|
||||||
|
Loading…
Reference in New Issue
Block a user