diff --git a/Changelog.md b/Changelog.md index 92f823600..309f614e0 100644 --- a/Changelog.md +++ b/Changelog.md @@ -79,6 +79,7 @@ With the port to Bootstrap 3, app/views/terms/default.haml has a new structure. ## Features * Implement NodeInfo [#6239](https://github.com/diaspora/diaspora/pull/6239) +* Display original author on reshares of NSFW posts [#6270](https://github.com/diaspora/diaspora/pull/6270) # 0.5.2.0 diff --git a/app/assets/stylesheets/single-post-view.scss b/app/assets/stylesheets/single-post-view.scss index 5b7d25e4c..82bf4d5bc 100644 --- a/app/assets/stylesheets/single-post-view.scss +++ b/app/assets/stylesheets/single-post-view.scss @@ -101,6 +101,8 @@ padding-left: 10px; } + .nsfw-off { display: none; } + .nsfw-shield { display: none; } .oembed { width: 95%; } .photo_attachments { img.big_stream_photo { max-width: 90%; } diff --git a/app/assets/stylesheets/stream_element.scss b/app/assets/stylesheets/stream_element.scss index 84cf30100..9b2861c5a 100644 --- a/app/assets/stylesheets/stream_element.scss +++ b/app/assets/stylesheets/stream_element.scss @@ -44,6 +44,9 @@ border-bottom: 1px solid $border-grey; padding: 10px; & > .media { + &.shield-active .nsfw-hidden { display: none; } + &:not(.shield-active) .nsfw-shield { display: none; } + &:not(.shield-off) .nsfw-off { display: none; } & > .img > .avatar { margin-top: 5px; &.small { diff --git a/app/assets/templates/status-message_tpl.jst.hbs b/app/assets/templates/status-message_tpl.jst.hbs index cf576b853..31a098277 100644 --- a/app/assets/templates/status-message_tpl.jst.hbs +++ b/app/assets/templates/status-message_tpl.jst.hbs @@ -1,5 +1,29 @@ +