Fix speaker picture and add name

This commit is contained in:
Tocho Tochev 2024-09-23 13:24:42 +03:00
parent ef5935bd85
commit 6af2d09896
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
@speakers.each do |speaker|
json.set! speaker.user_id do
json.extract! speaker, :twitter, :github, :biography, :public_email, :organisation, :last_name, :first_name
json.picture speaker.picture.serializable_hash
json.extract! speaker, :twitter, :github, :biography, :public_email, :organisation, :last_name, :first_name, :name
json.picture rails_blob_url(speaker.picture.variant(resize_to_fill: [100, 100]))
end
end