check `updated_at` instead of `created_at` against max public access expiration window

master
multiple creatures 2020-01-13 17:04:18 -06:00
parent fd8b5299fd
commit e9d38fc5b2
1 changed files with 1 additions and 1 deletions

View File

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