diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-17 09:07:45 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-01-17 09:52:19 +0100 |
commit | 77dd4ab8f5d09b128db1e0227b2afcf73d8531e7 (patch) | |
tree | e53417f50f9e4ab4b95bf0e9fbb18b0e00b0ce7e /app/serializers/rest | |
parent | 5effc0f8fa269f2ec98e7c9e7c8f31cccee274eb (diff) |
Fix `pinned` attribute not being set for private self-posts
Diffstat (limited to 'app/serializers/rest')
-rw-r--r-- | app/serializers/rest/status_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb index b5dcf6208..45ecd392b 100644 --- a/app/serializers/rest/status_serializer.rb +++ b/app/serializers/rest/status_serializer.rb @@ -124,7 +124,7 @@ class REST::StatusSerializer < ActiveModel::Serializer current_user? && current_user.account_id == object.account_id && !object.reblog? && - %w(public unlisted).include?(object.visibility) + %w(public unlisted private).include?(object.visibility) end def source_requested? |