This website requires JavaScript.
Explore
Support
Help
Register
Sign In
tykayn
/
mastodon
Watch
1
Star
0
Fork
0
You've already forked mastodon
mirror of
https://framagit.org/tykayn/mastodon.git
synced
2023-08-25 08:33:12 +02:00
Code
Issues
Projects
Releases
Wiki
Activity
36579bac88
mastodon
/
app
/
views
/
stream_entries
/
_og_description.html.haml
2 lines
99 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Do not hide NSFW media/CW'd text in OpenGraph tags (#6479) Reasoning: HTML title tag affects everyone. But OpenGraph only affects when somebody is deliberately sharing the content, usually in an environment where such content is expected. Hiding the content in OpenGraph tags results in deceitful previews which inhibit the shareability of the post. Example: Somebody writes a clever post about politics but kindly puts a "uspol" content warning on it. Mastodon users are thankful, but sharing this post on another platform results in non-Mastodon users believing the entire contents of the post is "uspol" and not clicking through/reading and re-sharing.
2018-02-16 04:40:53 +01:00
= opengraph 'og:description', [activity.spoiler_text, activity.text].reject(&:blank?).join("\n\n")
Reference in New Issue
Copy Permalink
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter
Accueil Chapril
Services libres
Nous suivre
CGU
Mentions légales
Nous contacter