Skip to content

Commit

Permalink
Merge pull request #278 from fablabbcn/bugfix/really-show-profile-ima…
Browse files Browse the repository at this point in the history
…ges-in-search-results

use profile image url and not object in search results
  • Loading branch information
oscgonfer authored Oct 27, 2023
2 parents 42c5f28 + 41e7f3f commit 871c969
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/controllers/v0/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class ApplicationController < ActionController::API
include ErrorHandlers

helper ::UserHelper
include ::UserHelper

respond_to :json

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/v0/static_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 871c969

Please sign in to comment.