prologic

twtxt.net

"Problems are Solved by Method" 🇦🇺👨‍💻👨‍🦯🏹♔ 🏓⚯ 👨‍👩‍👧‍👧🛥 -- James Mills (operator of twtxt.net / creator of Yarn.social 🧶)

Recent twts from prologic
In-reply-to » @prologic hey mate, all working well here so far. The login issue isn't really an issue as far as actually logging in goes, rather if I get my password wrong it gives the response error code in console, the response of which contains the HTML for the wrong password page if you inspect it, but on the frontend itself nothing actually happens which is the confusion. Just stays on the login page as if it was never submitted. Am I alone in having this issue as well?

@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 🤞

⤋ Read More
In-reply-to » @prologic Watched that one the other day after seeing that much chatter about #HTMX on the feed. And now I'm watching HTMX Sucks - Youtube by the same person (or should I say people?) 😂

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? 🤔

Download

– 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

⤋ Read More
In-reply-to » Should I just code in a work-around? If the 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>

⤋ Read More
In-reply-to » Yeah sorry just realised, but just checked again and the referrer is the same (/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.

⤋ Read More
In-reply-to » Hmm...

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)
}

⤋ Read More