From e95845777a0b5126905983caef365bce26e2e145 Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Mon, 22 Oct 2018 02:27:45 +0900 Subject: [PATCH] Fix og:image on user page (#2972) --- src/server/web/views/user.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/web/views/user.pug b/src/server/web/views/user.pug index 506a889d98..22c76c143b 100644 --- a/src/server/web/views/user.pug +++ b/src/server/web/views/user.pug @@ -3,7 +3,7 @@ extends ../../../../src/client/app/base block vars - const title = user.name ? `${user.name} (@${user.username})` : `@${user.username}`; - const url = `${config.url}/@${(user.host ? `${user.username}@${user.host}` : user.username)}`; - - const img = user.avatarId ? `${config.drive_url}/${user.avatarId}` : null; + - const img = user.avatarUrl || null; block title = `${title} | ${config.name}`