POST /post
XHR (_that is being run by htmx_) should never, ever be Referer: .../post
🤦♂️
# I am the Watcher. I am your guide through this vast new twtiverse. # # Usage: # https://watcher.sour.is/api/plain/users View list of users and latest twt date. # https://watcher.sour.is/api/plain/twt View all twts. # https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri. # https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject. # # Options: # uri Filter to show a specific users twts. # offset Start index for quey. # limit Count of items to return (going back in time). # # twt range = 1 60822 # self = https://watcher.sour.is?uri=https://twtxt.net/user/prologic/twtxt.txt&offset=54991 # next = https://watcher.sour.is?uri=https://twtxt.net/user/prologic/twtxt.txt&offset=55091 # prev = https://watcher.sour.is?uri=https://twtxt.net/user/prologic/twtxt.txt&offset=54891
POST /post
XHR (_that is being run by htmx_) should never, ever be Referer: .../post
🤦♂️
POST /post
request itself. That's the Referer
that's looked up and used as the redirect.
POST /post
request itself. That's the Referer
that's looked up and used as the redirect.
Referrer
is /post
and not /
or /discover
like it should be. Can we confirm/deny this if you inspect the POST /post
requests? 🤔g
if htmx.IsHTMX(r) {
htmx.NewResponse().
Location(RedirectRefererURL(r, s.config, "/")).
Write(w)
} else {
http.Redirect(w, r, RedirectRefererURL(r, s.config, "/"), http.StatusFound)
}
Referrer
is /post
and not /
or /discover
like it should be. Can we confirm/deny this if you inspect the POST /post
requests? 🤔g
\t\tif htmx.IsHTMX(r) {
\t\t\thtmx.NewResponse().
\t\t\t\tLocation(RedirectRefererURL(r, s.config, "/")).
\t\t\t\tWrite(w)
\t\t} else {
\t\t\thttp.Redirect(w, r, RedirectRefererURL(r, s.config, "/"), http.StatusFound)
\t\t}
Referrer
is /post
and not /
or /discover
like it should be. Can we confirm/deny this if you inspect the POST /post
requests? 🤔g
if htmx.IsHTMX(r) {
htmx.NewResponse().
Location(RedirectRefererURL(r, s.config, "/")).
Write(w)
} else {
http.Redirect(w, r, RedirectRefererURL(r, s.config, "/"), http.StatusFound)
}
GET /
, You are right that a POST /post
does an internal XHR redirect to whatever view you're on to refresh it.
GET /
, You are right that a POST /post
does an internal XHR redirect to whatever view you're on to refresh it.
GET /post
-- There is no handler/route for that, that *will* indeed 404, really strange you're still seeing this? And what's this login issue?
GET /post
-- There is no handler/route for that, that *will* indeed 404, really strange you're still seeing this? And what's this login issue?
DEBU[0163] no subscriptions found for http://10.0.0.164:8000/user/admin/twtxt.txt
[yarnd] 2024/06/19 23:13:23 (10.0.0.164:64888) "POST /post HTTP/1.1" 200 0 8.323709ms
DEBU[0163] reloading templates in debug mode...
[yarnd] 2024/06/19 23:13:23 (10.0.0.164:64888) "GET / HTTP/1.1" 200 18120 87.933208ms
POST /post ...
followed pretty quickly by a GET /
DEBU[0163] no subscriptions found for http://10.0.0.164:8000/user/admin/twtxt.txt
[yarnd] 2024/06/19 23:13:23 (10.0.0.164:64888) "POST /post HTTP/1.1" 200 0 8.323709ms
DEBU[0163] reloading templates in debug mode...
[yarnd] 2024/06/19 23:13:23 (10.0.0.164:64888) "GET / HTTP/1.1" 200 18120 87.933208ms
POST /post ...
followed pretty quickly by a GET /
go v1.22.2
here, but I'll upgrade now just to be sure...
go v1.22.2
here, but I'll upgrade now just to be sure...
go v1.22.2
here, but I'll upgrade now just to be sure...
* 8eef4d5d - (HEAD -> main, origin/main) Add DB restore capability and tools/backu-_db.sh script (19 seconds ago) <James Mills>
$ URL=http://10.0.0.164:8000 ./tools/backup_db.sh > db.json
mv db.json data/db.restore.json
yarnd ...
* 8eef4d5d - (HEAD -> main, origin/main) Add DB restore capability and tools/backu-_db.sh script (19 seconds ago) <James Mills>
$ URL=http://10.0.0.164:8000 ./tools/backup_db.sh > db.json
mv db.json data/db.restore.json
yarnd ...
yarnd
and there's enough interest, it _could_ become a user preference.
yarnd
and there's enough interest, it _could_ become a user preference.
^n
(Ctrl+n) -- Compose new TwtEsc
(Escape) -- Close the composer^t
(Ctrl+t) -- Refresh or navigate to Timeline^m
(Ctrl+m) -- Refresh or navigate to Mentions^d
(Ctrl+d) -- Refresh or navigate to Discover^n
(Ctrl+n) -- Compose new TwtEsc
(Escape) -- Close the composer^t
(Ctrl+t) -- Refresh or navigate to Timeline^m
(Ctrl+m) -- Refresh or navigate to Mentions^d
(Ctrl+d) -- Refresh or navigate to Discover^n
, then @
and then bender<TAB>
and the rest of this twt, finally ^ENTER
_)
^n
, then @
and then bender<TAB>
and the rest of this twt, finally ^ENTER
_)
1977cb18 2024-06-17T22:54:51+00:00
1977cb18 2024-06-17T22:54:51Z
1977cb18 2024-06-17T22:54:51+00:00
1977cb18 2024-06-17T22:54:51Z