summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/users/users.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-04-05 15:02:56 +0200
committerJules Laplace <julescarbon@gmail.com>2020-04-05 15:02:56 +0200
commitc77da863f6bb192e4685d3d2c3d8ef6a54033f85 (patch)
tree2d5dcec8e0ab36abc0a5b25d6c6f49cf38eb81a7 /public/assets/js/lib/views/users/users.js
parenta8197ecf2d698e9911356b02cc2faa4d3a645820 (diff)
profi fixes
Diffstat (limited to 'public/assets/js/lib/views/users/users.js')
-rw-r--r--public/assets/js/lib/views/users/users.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/users/users.js b/public/assets/js/lib/views/users/users.js
index cabf77c..cebc6f9 100644
--- a/public/assets/js/lib/views/users/users.js
+++ b/public/assets/js/lib/views/users/users.js
@@ -53,11 +53,12 @@ var UsersView = View.extend({
var commentCount = stats.comments ? hush_null(stats.comments, 'c') : ['','']
var firstseen_datetime = verbose_date(user.firstseen)
var lastseen = get_age(user.lastseen)
- var avatar = "https://s3.amazonaws.com/i.asdf.us/bucky/profile/" + user.username + ".jpg"
+ var avatar = profile_image(user.username)
var t = this.template
.replace(/{{username}}/g, sanitizeHTML(user.username))
.replace(/{{id}}/g, user.id)
.replace(/{{avatar}}/g, user.avatar)
+ .replace(/{{location}}/g, user.location)
.replace(/{{realname}}/g, sanitizeHTML(user.realname))
.replace(/{{firstseen_date}}/g, firstseen_datetime[0])
.replace(/{{firstseen_time}}/g, firstseen_datetime[1])