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/resizetest/dump.fm_files/pichat.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'static/resizetest/dump.fm_files/pichat.js') diff --git a/static/resizetest/dump.fm_files/pichat.js b/static/resizetest/dump.fm_files/pichat.js index 8a293ee..bdef69c 100755 --- a/static/resizetest/dump.fm_files/pichat.js +++ b/static/resizetest/dump.fm_files/pichat.js @@ -301,7 +301,7 @@ function buildMessageDiv(msg, isLoading) { var displayStyle = (TextEnabled || LastMsgContainsImage) ? '' : ' style="display: none"'; return '
' - + '' + nick + '' + + '' + nick + '' + ' ' + '' + '' + builtContent + '' @@ -311,7 +311,7 @@ function buildMessageDiv(msg, isLoading) { function buildUserDiv(user) { if (user.avatar) { return ''; } else { @@ -327,7 +327,7 @@ function buildUserDiv(user) { function buildFav(f) { var h = '
' + '' - + '' + f.from + '' + + '' + f.from + '' + ' just faved you!' + '
'; return $(h); @@ -363,7 +363,7 @@ function updateFavs(fs) { function buildGrowlDataAndPopDatShit(msg) { var nick = escapeHtml(msg.nick); - nick = '' + nick + ':' + nick = '' + nick + ':' var msg = buildMsgContent(msg.content) growl(nick, msg) } @@ -531,7 +531,7 @@ function refresh() { var onError = function(resp, textStatus, errorThrown) { var msg = $.trim(resp.responseText); if (msg == "UNKNOWN_ROOM") - location.href = "http://dump.fm"; + location.href = "/"; if (IsAdmin && window.console) { console.error(resp, textStatus, errorThrown); } @@ -1142,7 +1142,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() @@ -1159,7 +1159,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){ @@ -1340,7 +1340,7 @@ function initChatMsgs() { var zoomlink = $('') .attr({'href': img.attr('src') }) .addClass('msg-image-zoom') - .append($('').attr('src', 'http://dump.fm/static/img/zoom.gif') + .append($('').attr('src', '/static/img/zoom.gif') .addClass('zoom-icon')) .click(function() { window.open(img.attr('src')); return false; }); $(this).append(zoomlink); -- cgit v1.2.3-70-g09d2