fix avatars
This commit is contained in:
parent
ca0256268b
commit
82fb724770
@ -179,7 +179,7 @@ app:post("user_set_avatar", "/:username/set_avatar", function(self)
|
||||
local time = os.time()
|
||||
local filename = "u" .. target_user.id .. "d" .. time .. ".webp"
|
||||
local proxied_filename = "/avatars/" .. filename
|
||||
local save_path = "static" .. proxied_filename
|
||||
local save_path = "data/static" .. proxied_filename
|
||||
local res = util.validate_and_create_image(file.content, save_path)
|
||||
if not res then
|
||||
util.inject_warn_infobox(self, "Something went wrong. Try again later.")
|
||||
|
Loading…
Reference in New Issue
Block a user