about summary refs log tree commit diff
path: root/app/views/stream_entries/_og_image.html.haml
AgeCommit message (Collapse)Author
2019-05-18add og:image:alt for media attachments in embeds (#10779)Ben Lubar
2018-07-06Add admin setting to enable OG previews for sensitive media (#7962)Eugen Rochko
2018-03-18Revert #6479, hide sensitive text/images from OpenGraph previews (#6818)Eugen Rochko
Display summary of attachments in description, and mark up content warning if present, e.g.: Attached: 3 images · Content warning: Dota 2 When text is not supposed to be hidden, it looks more like: Attached: 3 images Here is the text of the toot With #6817, multilinguagility should be assured...
2018-02-16Save video metadata and improve video OpenGraph tags (#6481)Eugen Rochko
* Save metadata from video attachments, put correct dimensions into OG tags * Add twitter:player for videos * Fix code style and test
2018-02-16Do not hide NSFW media/CW'd text in OpenGraph tags (#6479)Eugen Rochko
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.
2017-10-04Fix #5050 - Use summary_large_image only with media attachments (#5219)Eugen Rochko
2017-09-18Do not add image size without meta to OGP (regression from #4901) (#4995)Yamagishi Kazutoshi
2017-09-12Clean up and improve generated OpenGraph tags (#4901)Eugen Rochko
- Return all images as og:image - Return videos as og:image (preview) and og:video - Return profile:username on profiles
2017-04-16Simplify the og:image and og:description code in stream_entries/show (#1934)Matt Jankowski