From 8e997048e3ef013f2c79831e3a0f14ef9f15c2ca Mon Sep 17 00:00:00 2001 From: Azareal Date: Thu, 15 Nov 2018 11:01:26 +1000 Subject: [PATCH] Use MicroAvatar instead of Avatar where possible to reduce the amount of time spent processing images on the client. Removed the site suffix from the default noavatar URL to increase the amount of inter-site caching. --- cmd/install/install.go | 2 +- config/config_example.json | 2 +- templates/forum.html | 6 +++--- templates/forums.html | 2 +- templates/header.html | 2 +- templates/profile_comments_row.html | 2 +- templates/topics.html | 2 +- templates/topics_topic.html | 4 ++-- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/cmd/install/install.go b/cmd/install/install.go index ba830969..dc5b419d 100644 --- a/cmd/install/install.go +++ b/cmd/install/install.go @@ -128,7 +128,7 @@ func main() { "MinifyTemplates":true, "BuildSlugs":true, "ServerCount":1, - "Noavatar":"https://api.adorable.io/avatars/{width}/{id}@{site_url}.png", + "Noavatar":"https://api.adorable.io/avatars/{width}/{id}.png", "ItemsPerPage":25 }, "Database": { diff --git a/config/config_example.json b/config/config_example.json index 18ba2240..73c567fc 100644 --- a/config/config_example.json +++ b/config/config_example.json @@ -30,7 +30,7 @@ "MinifyTemplates":true, "BuildSlugs":true, "ServerCount":1, - "Noavatar":"https://api.adorable.io/avatars/{width}/{id}@{site_url}.png", + "Noavatar":"https://api.adorable.io/avatars/{width}/{id}.png", "ItemsPerPage":25 }, "Database": { diff --git a/templates/forum.html b/templates/forum.html index cc984244..ba83ef6b 100644 --- a/templates/forum.html +++ b/templates/forum.html @@ -41,7 +41,7 @@ {{if .CurrentUser.Perms.CreateTopic}}