diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-17 11:59:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 11:59:46 +0100 |
commit | c60f8ce0322b2db6e234d4b4e59933304aa3f388 (patch) | |
tree | 183e5187c8b5fab3ff5363405001cbc74b0676a5 /app/serializers/rest | |
parent | 14f436c457560862fafabd753eb314c8b8a8e674 (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.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 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? |