From 57ec8c7c7d9a594c1245a29ffc6f1230ea13f2a9 Mon Sep 17 00:00:00 2001 From: bihlink <95501288+bihlink@users.noreply.github.com> Date: Wed, 6 Jul 2022 02:10:19 +0200 Subject: [PATCH] Update index.html --- static/index.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/static/index.html b/static/index.html index a3b6e22..ac27ad8 100644 --- a/static/index.html +++ b/static/index.html @@ -85,7 +85,19 @@ return document.getElementById(id).value; } - var inUrl = 'https://' + val('urlin') + '/users/' + val('usernamein'); + var instype = val('instancetype'); + if (instype == "wordpress") { + var inUrl = 'https://' + val('urlin') + '/author/' + val('usernamein'); + } + else if(instype == "misskey") { + var inUrl = 'https://' + val('urlin') + '/@' + val('usernamein'); + } + else if(instype == "mastodon") { + var inUrl = 'https://' + val('urlin') + '/users/' + val('usernamein'); + } + else { + var inUrl = 'https://' + val('urlin') + '/users/' + val('usernamein'); + } var showBoosts = (!document.getElementById('hideboosts').checked).toString(); var showReplies = (!document.getElementById('hidereplies').checked).toString();