2
0

Fix individually approved/rejected statuses/links showing as pending review (#17787)

This commit is contained in:
Eugen Rochko
2022-03-15 07:51:55 +01:00
committed by GitHub
parent 40a4dad4c8
commit a794117679
4 changed files with 12 additions and 4 deletions

View File

@@ -80,6 +80,10 @@ class PreviewCard < ApplicationRecord
end
end
def requires_review?
attributes['trendable'].nil? && (provider.nil? || provider.requires_review?)
end
def requires_review_notification?
attributes['trendable'].nil? && (provider.nil? || provider.requires_review_notification?)
end