From fc9a4ea22eb91757b95cbe1bf1708be17fc2337a Mon Sep 17 00:00:00 2001 From: yo momma Date: Tue, 27 Jan 2026 03:33:16 +0000 Subject: Fix HTTPS/mixed content; make config env-driven - Replace hardcoded dump.fm URLs with host/scheme config\n- Add optional passwordless login flow\n- Update templates/static assets to avoid blocked HTTP resources\n- Ignore local uploads/SQL dumps --- static/js/pichat.butt.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'static/js/pichat.butt.js') diff --git a/static/js/pichat.butt.js b/static/js/pichat.butt.js index ec2b068..bb1d00f 100755 --- a/static/js/pichat.butt.js +++ b/static/js/pichat.butt.js @@ -478,7 +478,7 @@ function initProfile() { t.html(buildMsgContent(t.text())); }); initLogThumb() - if (window.location.href == 'http://dump.fm/u/scottbot') { + if (window.location.href == '/u/scottbot') { $('body').append($('')); } }; @@ -817,7 +817,7 @@ function getMessageInfo(e){ var message = $(e).parents(".dump") var id = message.attr("id").substr(8) // cut "message-001" to "001" var nick = message.attr("nick") - var link = "http://dump.fm/p/" + nick + "/" + id + var link = "/p/" + nick + "/" + id var content = message.find(".linkify") if (!content.length) content = message.find(".content") var rawContent = content.html() @@ -834,7 +834,7 @@ Share = { }, "facebook": function(button){ var message = getMessageInfo(button) - var url = "http://www.facebook.com/share.php?u=" + message.img + "&t=" + message.via + var url = "https://www.facebook.com/share.php?u=" + message.img + "&t=" + message.via Share.openLink(url) }, "tumblr": function(button){ -- cgit v1.2.3-70-g09d2