0
0
Fork 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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

View file

@ -294,6 +294,10 @@ class Status < ApplicationRecord
end
end
def requires_review?
attributes['trendable'].nil? && account.requires_review?
end
def requires_review_notification?
attributes['trendable'].nil? && account.requires_review_notification?
end