Small chat bugfixes.

This commit is contained in:
Martin Edenhofer 2015-11-25 13:24:17 +01:00
parent 3c8a5777bd
commit c4ea70a31a

View file

@ -18,7 +18,7 @@ class Chat < ApplicationModel
chat_user = User.find(chat_session.user_id)
url = nil
if chat_user.image && chat_user.image != 'none'
url = "/api/v1/users/image/#{chat_user.image}"
url = "#{Setting.get('http_type')}://#{Setting.get('fqdn')}/api/v1/users/image/#{chat_user.image}"
end
user = {
name: chat_user.fullname,