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',
|
templateName: 'post',
|
||||||
classNameBindings: ['postTypeClass',
|
classNameBindings: ['postTypeClass',
|
||||||
'selected',
|
'selected',
|
||||||
'post.hidden:deleted',
|
'post.hidden:post-hidden',
|
||||||
'post.deleted'],
|
'post.deleted'],
|
||||||
postBinding: 'content',
|
postBinding: 'content',
|
||||||
|
|
||||||
|
@ -509,13 +509,16 @@ iframe {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.deleted {
|
.deleted {
|
||||||
.topic-body {
|
.topic-body {
|
||||||
background-color: lighten(red, 45%);
|
background-color: lighten(red, 45%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.post-hidden {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
.moderator {
|
.moderator {
|
||||||
.topic-body {
|
.topic-body {
|
||||||
background-color: lighten(yellow, 45%);
|
background-color: lighten(yellow, 45%);
|
||||||
|
@ -269,7 +269,6 @@ class TopicView
|
|||||||
|
|
||||||
def unfiltered_posts
|
def unfiltered_posts
|
||||||
result = @topic.posts
|
result = @topic.posts
|
||||||
result = result.where(hidden: false) unless @user.try(:staff?)
|
|
||||||
result = result.with_deleted if @user.try(:staff?)
|
result = result.with_deleted if @user.try(:staff?)
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user