diff options
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/rest/status_serializer.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb index 64578713a..284e634df 100644 --- a/app/serializers/rest/status_serializer.rb +++ b/app/serializers/rest/status_serializer.rb @@ -13,6 +13,7 @@ class REST::StatusSerializer < ActiveModel::Serializer attribute :pinned, if: :pinnable? attribute :local_only if :local? attribute :sharekey, if: :owner? + attribute :delete_after, if: :current_user? attribute :content, unless: :source_requested? attribute :text, if: :source_requested? @@ -135,6 +136,10 @@ class REST::StatusSerializer < ActiveModel::Serializer object.active_mentions.to_a.sort_by(&:id) end + def delete_after + object.delete_after + end + class ApplicationSerializer < ActiveModel::Serializer attributes :name, :website end |