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 11:59:46 +0100
committerGitHub <noreply@github.com>2022-01-17 11:59:46 +0100
commitc60f8ce0322b2db6e234d4b4e59933304aa3f388 (patch)
tree183e5187c8b5fab3ff5363405001cbc74b0676a5 /app/serializers/rest
parent14f436c457560862fafabd753eb314c8b8a8e674 (diff)
Fix `pinned` attribute not being set for private self-posts (#17304)
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 bb6df90b7..e84f3bd61 100644
--- a/app/serializers/rest/status_serializer.rb
+++ b/app/serializers/rest/status_serializer.rb
@@ -122,7 +122,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?