about summary refs log tree commit diff
path: root/app/models/status.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-03-15 07:51:55 +0100
committerGitHub <noreply@github.com>2022-03-15 07:51:55 +0100
commita7941176791ec8ad56e45efbb449b9d09a580a6b (patch)
treed2a8b6b7eb12be7e5a7e7fad67693f1f5d796039 /app/models/status.rb
parent40a4dad4c8e63430a8027ab2ed3aca5526b0508a (diff)
Fix individually approved/rejected statuses/links showing as pending review (#17787)
Diffstat (limited to 'app/models/status.rb')
-rw-r--r--app/models/status.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb
index f2c55090b..5b984543e 100644
--- a/app/models/status.rb
+++ b/app/models/status.rb
@@ -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