Fix direct inbox delivery pushing posts into inactive followers' timelines (#33067)
This commit is contained in:
parent
2d8fed23e6
commit
9a7130d6da
2 changed files with 8 additions and 1 deletions
|
@ -165,6 +165,10 @@ class User < ApplicationRecord
|
|||
end
|
||||
end
|
||||
|
||||
def signed_in_recently?
|
||||
current_sign_in_at.present? && current_sign_in_at >= ACTIVE_DURATION.ago
|
||||
end
|
||||
|
||||
def confirmed?
|
||||
confirmed_at.present?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue