From 77dd4ab8f5d09b128db1e0227b2afcf73d8531e7 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 17 Jan 2022 09:07:45 +0100 Subject: [PATCH] Fix `pinned` attribute not being set for private self-posts --- app/serializers/rest/status_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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?