Correct render bugs with the user and profile json

This commit is contained in:
Eric 2020-05-14 11:54:28 -05:00
parent 5e8a1c4099
commit 7c85c2e70e

View file

@ -3,4 +3,4 @@
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
json.extract! profile, :id, :name, :country, :picture
json.url profile_path(profile)
json.pic_tiny profile.get_profile_picture(:tiny)
json.pic_tiny profile.picture_by_size(:tiny) if profile.picture.attached?