check `updated_at` instead of `created_at` against max public access expiration window
parent
fd8b5299fd
commit
e9d38fc5b2
|
@ -93,7 +93,7 @@ class StatusPolicy < ApplicationPolicy
|
|||
|
||||
def still_accessible?
|
||||
return true unless record.local?
|
||||
record.created_at > record.account.user.max_public_access.to_i.days.ago
|
||||
record.updated_at > record.account.user.max_public_access.to_i.days.ago
|
||||
end
|
||||
|
||||
def author_allows_anon?
|
||||
|
|
Loading…
Reference in New Issue