From c4ea70a31a8a302aba10beeda4efd19c1eff61ac Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 25 Nov 2015 13:24:17 +0100 Subject: [PATCH] Small chat bugfixes. --- app/models/chat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/chat.rb b/app/models/chat.rb index 2a013e880..dc2704c97 100644 --- a/app/models/chat.rb +++ b/app/models/chat.rb @@ -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,