From 0e9bb70f145be42962416a6b87c08d59a2896486 Mon Sep 17 00:00:00 2001 From: hina Date: Wed, 20 Feb 2019 20:28:50 +0900 Subject: [PATCH] correct opt-out showing application refs #9994 --- 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 66e19be560f1eb..943f691d6af19a 100644 --- a/app/serializers/rest/status_serializer.rb +++ b/app/serializers/rest/status_serializer.rb @@ -39,7 +39,7 @@ def current_user? end def show_application? - object.account.user_shows_application? || (current_user? && current_user.account_id == object.account_id) + object.account.user&.setting_show_application || (current_user? && current_user.account_id == object.account_id) end def visibility