diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-01-13 01:36:56 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-01-13 01:37:22 -0600 |
commit | d72e6bfd54dc94176f90ebe5cc4f052546d06e92 (patch) | |
tree | 037824ee3b1fe14800c51bcbf76c4b62ee218ca0 | |
parent | 51bab85b07b1433e832152f6498f203ec4b4434d (diff) |
make `still_accessiblible?` only check posts with an `account.user`
-rw-r--r-- | app/policies/status_policy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/status_policy.rb b/app/policies/status_policy.rb index f23d089d4..4eae066db 100644 --- a/app/policies/status_policy.rb +++ b/app/policies/status_policy.rb @@ -91,6 +91,7 @@ class StatusPolicy < ApplicationPolicy end def still_accessible? + return true unless record.local? record.created_at > record.account.user.max_public_access.to_i.days.ago end |