From 5ccec3a9b65887bbb9aee85d36194007a1351e32 Mon Sep 17 00:00:00 2001 From: Tim Cowlishaw Date: Fri, 27 Oct 2023 11:21:12 +0200 Subject: [PATCH] ensure profile_picture is sent for users in search results --- app/controllers/v0/static_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/v0/static_controller.rb b/app/controllers/v0/static_controller.rb index 55b3e170..544b42c9 100644 --- a/app/controllers/v0/static_controller.rb +++ b/app/controllers/v0/static_controller.rb @@ -118,6 +118,7 @@ def search elsif s.searchable_type == 'User' h['username'] = s.searchable.username h['avatar'] = s.searchable.avatar + h['profile_picture'] = s.searchable.profile_picture h['city'] = s.searchable.city h['url'] = v0_user_url(s.searchable_id) end