mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 19:00:32 -06:00
FIX: Missing letter avatars
cc @zogstrip It seems that the version string was ammended to return the ImageMagick version. This caused the guard in the user avatars method to fail as the versions weren't the same. I changed it so it is comparing the right version, but I wonder if this is bad as the controller is no longer using the ImageMagick version. Can you please review?
This commit is contained in:
parent
d16df04c76
commit
03943554c6
@ -24,7 +24,7 @@ class UserAvatarsController < ApplicationController
|
||||
params.require(:version)
|
||||
params.require(:size)
|
||||
|
||||
return render_dot if params[:version] != LetterAvatar.version
|
||||
return render_dot if params[:version].to_i != LetterAvatar::VERSION
|
||||
|
||||
image = LetterAvatar.generate(params[:username].to_s, params[:size].to_i)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user