Fix possible edge case
This commit is contained in:
@@ -755,7 +755,7 @@ class Post < ActiveRecord::Base
|
|||||||
if CurrentUser.safe_mode?
|
if CurrentUser.safe_mode?
|
||||||
tags = "#{tags} rating:s".strip
|
tags = "#{tags} rating:s".strip
|
||||||
end
|
end
|
||||||
if CurrentUser.user && CurrentUser.hide_deleted_posts?
|
if CurrentUser.user && CurrentUser.hide_deleted_posts? && tags !~ /(?:^|\s)(?:-)?status:.+/
|
||||||
tags = "#{tags} -status:deleted".strip
|
tags = "#{tags} -status:deleted".strip
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user