diff options
-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? |