0
0
Fork 0

Fix direct inbox delivery pushing posts into inactive followers' timelines (#33067)

This commit is contained in:
Claire 2024-11-25 16:54:18 +01:00 committed by GitHub
parent 2d8fed23e6
commit 9a7130d6da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -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