diff --git a/Changelog.md b/Changelog.md index 3057f185b..47e26469f 100644 --- a/Changelog.md +++ b/Changelog.md @@ -25,6 +25,7 @@ Ruby 2.0 is no longer officially supported. * Remove some old temporary workarounds [#5964](https://github.com/diaspora/diaspora/pull/5964) * Remove unused `hasPhotos` and `hasText` functions [#5969](https://github.com/diaspora/diaspora/pull/5969) * Replace foreman with eye [#5966](https://github.com/diaspora/diaspora/pull/5966) +* Improved handling of reshares with deleted roots [#5968](https://github.com/diaspora/diaspora/pull/5968) ## Bug fixes * Disable auto follow back on aspect deletion [#5846](https://github.com/diaspora/diaspora/pull/5846) diff --git a/app/assets/javascripts/app/views/content_view.js b/app/assets/javascripts/app/views/content_view.js index 75a4632cc..e93f6bfa6 100644 --- a/app/assets/javascripts/app/views/content_view.js +++ b/app/assets/javascripts/app/views/content_view.js @@ -10,7 +10,8 @@ app.views.Content = app.views.Base.extend({ text : app.helpers.textFormatter(this.model.get("text"), this.model.get("mentioned_people")), largePhoto : this.largePhoto(), smallPhotos : this.smallPhotos(), - location: this.location() + location: this.location(), + isReshare : this.model.get("post_type") === "Reshare" }); }, diff --git a/app/assets/stylesheets/single-post-view.scss b/app/assets/stylesheets/single-post-view.scss index c5a5684a1..7ddcb9576 100644 --- a/app/assets/stylesheets/single-post-view.scss +++ b/app/assets/stylesheets/single-post-view.scss @@ -98,6 +98,11 @@ padding-top: 20px; width: auto; + #real-post-content div.reshare { + border-left: 2px solid #DDD; + padding-left: 10px; + } + .oembed { width: 95%; } .photo_attachments { img.big_stream_photo { max-width: 90%; } diff --git a/app/assets/templates/reshare_tpl.jst.hbs b/app/assets/templates/reshare_tpl.jst.hbs index a1a661658..b1334fa0a 100644 --- a/app/assets/templates/reshare_tpl.jst.hbs +++ b/app/assets/templates/reshare_tpl.jst.hbs @@ -1,16 +1,11 @@
- {{t "stream.original_post_deleted"}} -
- {{/if}} - + {{else}} ++ {{t "stream.original_post_deleted"}} +
+ {{/if}} ++ {{t "stream.original_post_deleted"}} +
+