diff options
author | Pavel Makhov <pmakhov@theoctavegroup.com> | 2019-11-08 14:29:15 -0500 |
---|---|---|
committer | Pavel Makhov <pmakhov@theoctavegroup.com> | 2019-11-08 14:30:47 -0500 |
commit | bf136f9d14b48dde2db4e66e4beb49e29e8060a2 (patch) | |
tree | 5311a15febdc37f2be0651be516875c31d3c2946 /gerrit-widget | |
parent | 1dacf4b89d54300d680caa31e191ae5b38451a44 (diff) |
fix but with missing avatar
Diffstat (limited to 'gerrit-widget')
-rw-r--r-- | gerrit-widget/gerrit.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerrit-widget/gerrit.lua b/gerrit-widget/gerrit.lua index 8e9788e..0b0ff64 100644 --- a/gerrit-widget/gerrit.lua +++ b/gerrit-widget/gerrit.lua @@ -93,7 +93,7 @@ local function worker(args) spawn.easy_async(string.format(GET_USER_CMD, host, user_id), function(stdout, stderr, reason, exit_code) local user = json.decode(stdout) name_dict[tonumber(user_id)].username = user.name - if not gfs.file_readable(PATH_TO_AVATARS .. '/id') then + if not gfs.file_readable(PATH_TO_AVATARS .. user_id) then spawn.easy_async(string.format(DOWNLOAD_AVATAR_CMD, PATH_TO_AVATARS .. user_id, user.avatars[1].url)) end end) @@ -130,7 +130,7 @@ local function worker(args) { { resize = true, - image = path_to_avatar, + image = PATH_TO_AVATARS .. review.owner._account_id, forced_width = 40, forced_height = 40, widget = wibox.widget.imagebox |