fixes #1327
This commit is contained in:
@@ -68,6 +68,9 @@ class PostFlag < ActiveRecord::Base
|
|||||||
if post.is_deleted?
|
if post.is_deleted?
|
||||||
errors[:post] << "is deleted"
|
errors[:post] << "is deleted"
|
||||||
false
|
false
|
||||||
|
elsif post.is_pending?
|
||||||
|
errors[:post] << "is pending"
|
||||||
|
false
|
||||||
else
|
else
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user