From c60f8ce0322b2db6e234d4b4e59933304aa3f388 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 17 Jan 2022 11:59:46 +0100 Subject: Fix `pinned` attribute not being set for private self-posts (#17304) --- app/serializers/rest/status_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/serializers/rest') 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? -- cgit