]> cat aescling's git repositories - mastodon.git/commit
Revert #6479, hide sensitive text/images from OpenGraph previews (#6818)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 18 Mar 2018 19:33:07 +0000 (20:33 +0100)
committerGitHub <noreply@github.com>
Sun, 18 Mar 2018 19:33:07 +0000 (20:33 +0100)
commita568e3ca8e754b690224ae79e75aeb60efa49b78
tree33bd913d090c4f1c32a6f4bda917d38e3c538db7
parent3b440bd5af92682c388140035c1bcdc6f9711b1d
Revert #6479, hide sensitive text/images from OpenGraph previews (#6818)

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...
app/helpers/stream_entries_helper.rb
app/views/accounts/_og.html.haml
app/views/accounts/show.html.haml
app/views/stream_entries/_og_description.html.haml
app/views/stream_entries/_og_image.html.haml
app/views/stream_entries/show.html.haml
config/i18n-tasks.yml
config/locales/en.yml