diff options
author | multiple creatures <dev@multiple-creature.party> | 2020-02-14 17:53:12 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2020-02-14 17:53:12 -0600 |
commit | 2f2bd68094ab0f85e09e65501f847f80840df135 (patch) | |
tree | f875ea7f38c65ef64902ff9cb84df6a27e74032f /app | |
parent | 104fdea06bb175103f6ab298a6a14dbc77184d59 (diff) |
limit visibility of post defederation & deletion timers to the author(s)
Diffstat (limited to 'app')
-rw-r--r-- | app/serializers/rest/status_serializer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb index 11a50c47b..1d58264d5 100644 --- a/app/serializers/rest/status_serializer.rb +++ b/app/serializers/rest/status_serializer.rb @@ -16,8 +16,8 @@ class REST::StatusSerializer < ActiveModel::Serializer attribute :pinned, if: :pinnable? attribute :local_only if :local? attribute :sharekey, if: :has_sharekey? - attribute :delete_after, if: :current_user? - attribute :defederate_after, if: :current_user? + attribute :delete_after, if: :owner? + attribute :defederate_after, if: :owner? attribute :content, unless: :source_requested? attribute :text, if: :source_requested? |