add shortcut to deleted posts

This commit is contained in:
albert
2013-02-18 14:51:17 -05:00
parent 5167cf6948
commit bfe0af7649
3 changed files with 13 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ module PostSets
end
end
def has_deleted?
tag_string !~ /status/ && ::Post.tag_match("#{tag_string} status:deleted").exists?
end
def has_explicit?
posts.any? {|x| x.rating == "e"}
end