about summary refs log tree commit diff
path: root/app/serializers/rest
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-01-17 09:07:45 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-01-17 09:52:19 +0100
commit77dd4ab8f5d09b128db1e0227b2afcf73d8531e7 (patch)
treee53417f50f9e4ab4b95bf0e9fbb18b0e00b0ce7e /app/serializers/rest
parent5effc0f8fa269f2ec98e7c9e7c8f31cccee274eb (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.rb2
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?