Skip to content

Commit

Permalink
correct opt-out showing application
Browse files Browse the repository at this point in the history
  • Loading branch information
hinaloe committed Feb 20, 2019
1 parent addc839 commit 0e9bb70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/serializers/rest/status_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e9bb70

Please sign in to comment.