diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-20 19:52:43 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:19 -0500 |
commit | 4f3e491ad07a6468243c92aca520309b53ac8e70 (patch) | |
tree | fa062b43df8af6adc02f197c56813a328d50d4be /app/policies | |
parent | df03f10b119e2d3fd1a4e10a6392ecac036886fb (diff) |
[Bug, Filters, Cleanup] Fix the timeline filters (hopefully once and for all!)
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/status_policy.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/policies/status_policy.rb b/app/policies/status_policy.rb index 6d1584ee8..b92494103 100644 --- a/app/policies/status_policy.rb +++ b/app/policies/status_policy.rb @@ -53,7 +53,7 @@ class StatusPolicy < ApplicationPolicy end def private? - visibility_for_remote_domain == 'private' || !public_conversation? + visibility_for_remote_domain == 'private' || reply? && !public_conversation? end def mention_exists? @@ -138,6 +138,10 @@ class StatusPolicy < ApplicationPolicy record.published? end + def reply? + record.reply? && record.in_reply_to_account_id != author.id + end + def public_conversation? return @public_conversation if defined?(@public_conversation) |