@bender@twtxt.net Yeah I will! I don’t really use Matrix much tbh
@lyse@lyse.isobeef.org I’m so confused now 🤣
@movq@www.uninformativ.de me neither 🤦♂️
@bender@twtxt.net Haha @lyse@lyse.isobeef.org exaxrly! 🤣
@eldersnake@we.loveprivacy.club Like a “I’m on a public terminal” type thing? Which has the opposite effect? With some helpful descriptive text? 🤔
@eldersnake@we.loveprivacy.club Oh! That’s a bug and pure lack of “form validation!” 😅 Thanks for pointing this out, I’ll fix this tonight 🤞
@bender@twtxt.net I do! I think it’s prologic:mills.io
Can we trust the bots not to fake their identity? 🤔
@aelaraji@aelaraji.com Hmmm looks like the core idea is to intercept requests, Inspect the UserAgent
header and respond accordingly.
But what would you prefer if you were rethinking the architectural design of your next web app? A bazillion lines of Javascript™ with all kinds of indirections and acrobatics that are impossible to understand? 🤔
– Or just write your web application as a normal set of pages in the Hypermedia Driven Application (HDA) style/architecture, than sprinkle a few hx-*
attributes and get the same user experience? 😅 #htmx
@aelaraji@aelaraji.com Yeah it’s more along the lines of “everything sucks” at least a bit 🤣
@lyse@lyse.isobeef.org I’ll buy that argument 👌
@lyse@lyse.isobeef.org Can you get an AI to summarize this 🤣
@bender@twtxt.net Hmmm god question 🤣 @shreyan@twtxt.net Can you tell @bender@twtxt.net what my Matrix handle is 🤣
@lyse@lyse.isobeef.org Yeah I’m not a fan of all this YouTube / Discord / Twitch studs 🤣 I was more interested in the presentation itself which is also covered by the cook
Haha yeah that video on htmx sucks is pretty funny really! 🤣 And no it obviously doesn’t suck 😅
127.0.1 (64-bit)
tonight and tested and it worked just fine. Try upgrading and roll that commit back and see if it still repros? 🤔 I'm almost willing to bet this is a bug 🐛
@lyse@lyse.isobeef.org Haha, sadly no, that is the version number Firefox is up to 🤣
Interview with Senior JS Developer 2024 [NEW] - YouTube Bahahahahaha 🤣 So funny!
@lyse@lyse.isobeef.org 10s rule? 🤔
@movq@www.uninformativ.de True! Complexity Budget 👌
@eldersnake@we.loveprivacy.club No worries! Any time 🤗 Sorry it took this long to sort out, I’m not happy about how we did it (work around et all) but yeah if that’s what we have to do, so be it 🤣
@movq@www.uninformativ.de Oh come now, this isn’t the first Browser bug we’ve seen right? 😅
Referer
is /post
then consider that total bullshit, and ignore? 🤔
@eldersnake@we.loveprivacy.club Good good 👍
@eldersnake@we.loveprivacy.club But not me against your pod, so that’s even weirder right? 🤔
@movq@www.uninformativ.de You wouldn’t believe it, but I’m pretty sure @eldersnake@we.loveprivacy.club and I found a nasty little bug in Firefox 126.0.1
🤣
Referer
is /post
then consider that total bullshit, and ignore? 🤔
@eldersnake@we.loveprivacy.club I just installed 127.0.1 (64-bit)
tonight and tested and it worked just fine. Try upgrading and roll that commit back and see if it still repros? 🤔 I’m almost willing to bet this is a bug 🐛
Referer
is /post
then consider that total bullshit, and ignore? 🤔
What browser and version is this btw? Not sure if you mentioned?
Referer
is /post
then consider that total bullshit, and ignore? 🤔
@eldersnake@we.loveprivacy.club Fuck’n hell 🤣 This has to be a browser bug!
Referer
is /post
then consider that total bullshit, and ignore? 🤔
@eldersnake@we.loveprivacy.club Looks legit 👌
Referer
is /post
then consider that total bullshit, and ignore? 🤔
Okay just pushed:
* aa2f3ae9 - (HEAD -> main, origin/main) Workaround for this invalid Referer BS (6 seconds ago) <James Mills>
Should I just code in a work-around? If the Referer
is /post
then consider that total bullshit, and ignore? 🤔
Why would a Web Browser set the Referer
header incorrectly?! 🤔
Can’t reproduce with Iridium either.
Can’t reproduce with Firefox.
A initial post, reply and conv -> post (bottom of page) and nothing 🤔 All 6 requests are POST /post
followed by a GET <from>
where ever I was coming from. Hmmm 🧐
This is nuts 🌰
Test
Test
Test
/post
) on either the POST
or the GET
🤔
@eldersnake@we.loveprivacy.club Yeah no worries!
You can see here, at least, htmx knows what the current URL is:
HX-Current-URL: https://we.loveprivacy.club/conv/vcpt7gq
Referer: https://we.loveprivacy.club/post
But the freak’n browser is setting the wrong value for Referer
. There is simply no way to be on the /post
endpoint normally anyway.
/post
) on either the POST
or the GET
🤔
What Browser is this again? Does it happen with any other browser?
/post
) on either the POST
or the GET
🤔
@eldersnake@we.loveprivacy.club Ahh missed this. Fuck, that’s just silliness and not right. wtf?!
The POST /post
XHR (that is being run by htmx) should never, ever be Referer: .../post
🤦♂️
@eldersnake@we.loveprivacy.club I mean on the POST /post
request itself. That’s the Referer
that’s looked up and used as the redirect.
The only way this is possible is if the Referrer
is /post
and not /
or /discover
like it should be. Can we confirm/deny this if you inspect the POST /post
requests? 🤔
See this code
if htmx.IsHTMX(r) {
htmx.NewResponse().
Location(RedirectRefererURL(r, s.config, "/")).
Write(w)
} else {
http.Redirect(w, r, RedirectRefererURL(r, s.config, "/"), http.StatusFound)
}
There is only one explanation for this… Lemme see…
Let’s focus on this ☝️ how in da fuq is this happenning?!