mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Handle nil case for avatar, just in case
This commit is contained in:
parent
8b4e71cb21
commit
7744b636e9
@ -80,6 +80,7 @@ module DiscourseNarrativeBot
|
||||
end
|
||||
|
||||
def base64_image_data(data)
|
||||
return "" if data.blank?
|
||||
"xlink:href=\"data:image/png;base64,#{Base64.strict_encode64(data)}\""
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user