mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
FIX: Hidden posts were not being displayed with the correct messaging.
This commit is contained in:
parent
da825451d0
commit
194081ca47
@ -11,7 +11,7 @@ Discourse.PostView = Discourse.GroupedView.extend(Ember.Evented, {
|
||||
templateName: 'post',
|
||||
classNameBindings: ['postTypeClass',
|
||||
'selected',
|
||||
'post.hidden:deleted',
|
||||
'post.hidden:post-hidden',
|
||||
'post.deleted'],
|
||||
postBinding: 'content',
|
||||
|
||||
|
@ -509,13 +509,16 @@ iframe {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.deleted {
|
||||
.topic-body {
|
||||
background-color: lighten(red, 45%);
|
||||
}
|
||||
}
|
||||
|
||||
.post-hidden {
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.moderator {
|
||||
.topic-body {
|
||||
background-color: lighten(yellow, 45%);
|
||||
|
@ -269,7 +269,6 @@ class TopicView
|
||||
|
||||
def unfiltered_posts
|
||||
result = @topic.posts
|
||||
result = result.where(hidden: false) unless @user.try(:staff?)
|
||||
result = result.with_deleted if @user.try(:staff?)
|
||||
result
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user