diff --git a/app/controllers/v0/application_controller.rb b/app/controllers/v0/application_controller.rb index 4daae564..cc15a895 100644 --- a/app/controllers/v0/application_controller.rb +++ b/app/controllers/v0/application_controller.rb @@ -12,6 +12,7 @@ class ApplicationController < ActionController::API include ErrorHandlers helper ::UserHelper + include ::UserHelper respond_to :json diff --git a/app/controllers/v0/static_controller.rb b/app/controllers/v0/static_controller.rb index 544b42c9..23b2b7e8 100644 --- a/app/controllers/v0/static_controller.rb +++ b/app/controllers/v0/static_controller.rb @@ -118,7 +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['profile_picture'] = profile_picture_url(s.searchable) h['city'] = s.searchable.city h['url'] = v0_user_url(s.searchable_id) end