# 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 196309
# self = https://watcher.sour.is?offset=164858
# next = https://watcher.sour.is?offset=164958
# prev = https://watcher.sour.is?offset=164758
Test
Test
@eldersnake 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.
@eldersnake 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.
@prologic Firefox but it happens on Brave and Chromium on my laptop, or any browser (Brave, Chromium, Vanadium) I try on my Android phone.
What Browser is this again? Does it happen with any other browser?
What Browser is this again? Does it happen with any other browser?
@prologic Sorry, my messages don't get included in the current convo unless I tag you. Guess something gets lossed in translation with this weird posting issue. ANYWAY, it is rather perplexing. Clearly only an issue on my Pod, but what could the source of it be ๐Ÿค”
Easy: 5.00 miles, 00:09:14 average pace, 00:46:11 duration
kept it in zone 2 pretty well
#running #treadmill
Easy: 5.00 miles, 00:09:14 average pace, 00:46:11 duration
kept it in zone 2 pretty well
#running #treadmill
Easy: 5.00 miles, 00:09:14 average pace, 00:46:11 duration
kept it in zone 2 pretty well
#running #treadmill
@eldersnake Ahh missed this. Fuck, that's just silliness and not right. wtf?!
@eldersnake 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 ๐Ÿคฆโ€โ™‚๏ธ
The POST /post XHR (_that is being run by htmx_) should never, ever be Referer: .../post ๐Ÿคฆโ€โ™‚๏ธ
For example, this is what you *should* see:
For example, this is what you *should* see:
Yeah sorry just realised, but just checked again and the referrer is the same (/post) on either the POST or the GET ๐Ÿค”
@eldersnake I mean on the POST /post request itself. That's the Referer that's looked up and used as the redirect.
@eldersnake I mean on the POST /post request itself. That's the Referer that's looked up and used as the redirect.
Testing
Indeed /post is referrer...

>GET /post HTTP/2
Host: we.loveprivacy.club
[...]
HX-Request: true
HX-Target: content
HX-Current-URL: https://we.loveprivacy.club/conv/vcpt7gq
Referer: https://we.loveprivacy.club/post
>
@prologic Okay lemme see
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

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

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

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)
}
There is only one explanation for this... Lemme see...
There is only one explanation for this... Lemme see...
Let's focus on this โ˜๏ธ how in da fuq is this happenning?!
Let's focus on this โ˜๏ธ how in da fuq is this happenning?!
@eldersnake LOL all good. Feel free to use https://gist.mills.io ๐Ÿ‘Œ
@eldersnake LOL all good. Feel free to use https://gist.mills.io ๐Ÿ‘Œ
@eldersnake Holy fuck?! That's unpossible?!
@eldersnake Holy fuck?! That's unpossible?!
@prologic Yeah realised I hit the character limit lol
Oh you deleted that last Twt ๐Ÿคฃ
Oh you deleted that last Twt ๐Ÿคฃ
@eldersnake I don't see the subsequent GET /, You are right that a POST /post does an internal XHR redirect to whatever view you're on to refresh it.
@eldersnake I don't see the subsequent GET /, You are right that a POST /post does an internal XHR redirect to whatever view you're on to refresh it.
Hmm...


>Jun 19 23:31:38 yarn_init.sh[61567]: [yarnd] 2024/06/19 23:31:38 (127.0.0.1:40254) "POST /post HTTP/
1.0" 200 0 3.402208ms
[...]
>
> Jun 19 23:31:39 yarn_init.sh[61567]: [yarnd] 2024/06/19 23:31:39 (127.0.0.1:40262) "GET /post HTTP/1.0" 404 729 123.474001ms
@prologic The login issue I cant yet narrow down as to when it happens as sometimes I login fine. But it gives off a 401 forbidden error. Anyway I've been focusing on the posting error as I figured it must be related. Registering and logging in as a new user works every time, which is weird.
@eldersnake That one was ๐Ÿ‘Œ
@eldersnake That one was ๐Ÿ‘Œ
@bender hmm you may be right...
But there should *never ever* be a 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?
But there should *never ever* be a 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?
Upgraded my Go compiler and I'm still not able to reproduce those 404(s) you're seeing. For clarity, this is what you expect to see in the server logs:


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


for every post there should be a POST /post ... followed pretty quickly by a GET /
Upgraded my Go compiler and I'm still not able to reproduce those 404(s) you're seeing. For clarity, this is what you expect to see in the server logs:


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


for every post there should be a POST /post ... followed pretty quickly by a GET /
FWOW go v1.22.2 here, but I'll upgrade now just to be sure...
FWIW go v1.22.2 here, but I'll upgrade now just to be sure...
FWIW go v1.22.2 here, but I'll upgrade now just to be sure...
@eldersnake So you're still having the exact same problems?! ๐Ÿค” And no I don't think the version of the compiler has much to do with this ๐Ÿ˜ข
@eldersnake So you're still having the exact same problems?! ๐Ÿค” And no I don't think the version of the compiler has much to do with this ๐Ÿ˜ข

* 8eef4d5d - (HEAD -> main, origin/main) Add DB restore capability and tools/backu-_db.sh script (19 seconds ago) <James Mills>


Oh well ๐Ÿ˜… It works wonderfully!

In the event of a database corruption or loss:


$ 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>


Oh well ๐Ÿ˜… It works wonderfully!

In the event of a database corruption or loss:


$ URL=http://10.0.0.164:8000 ./tools/backup_db.sh > db.json
mv db.json data/db.restore.json
yarnd ...
@eldersnake are your replies creating new posts? I know this is a reply to a question from @prologic, but it is not within the same thread.
Unfortunately not on that front. Still the same 404 posting errors and oddly occasional login errors.

That's why I was wondering if using Go 1.22.4 could be an issue. I don't know how exactly. Only way to test is to rebuild it with an older version I guess, which is why I did the make clean in the first place. Old habits die hard lol.
@eldersnake Oh well, is the pod at least behaving normally now, just like mine? ๐Ÿ˜…
@eldersnake Oh well, is the pod at least behaving normally now, just like mine? ๐Ÿ˜…
Haha, yeah sorry about that, I wasn't even trying to nuke the database either but it worked out that way ๐Ÿ˜ฉ
@eldersnake Bahahahaha ๐Ÿคฃ That's sure one fire way of cleaning up house ๐Ÿ 
@eldersnake Bahahahaha ๐Ÿคฃ That's sure one fire way of cleaning up house ๐Ÿ 
I'll complete the work anyway, it's just wrapping up existing code and making backups of the database a proper thing.
I'll complete the work anyway, it's just wrapping up existing code and making backups of the database a proper thing.
@eldersnake Ahh damn man haha ๐Ÿ˜ If you had given me like ~20 more mins (_just got home_) I would have had a fulll backup/restore that would have been "just run this command and move this file here". ๐Ÿ˜…~
@eldersnake Ahh damn man haha ๐Ÿ˜ If you had given me like ~20 more mins (_just got home_) I would have had a fulll backup/restore that would have been "just run this command and move this file here". ๐Ÿ˜…~
I guess it got rid of all the dead spam bot accounts at least ๐Ÿคฃ
@prologic Correct... epic fail ๐Ÿคฃ Been a long day and I just wasn't thinking, nor backing up properly. Oops indeed. My usual errors still exist though.
Are the weird errors gone at least? ๐Ÿ˜…
Are the weird errors gone at least? ๐Ÿ˜…
@eldersnake Hold up wait... You effectively now have a fresh new pod with only yourself? ๐Ÿคฃ Ooops!
@eldersnake Hold up wait... You effectively now have a fresh new pod with only yourself? ๐Ÿคฃ Ooops!
@prologic Righteo, so rookie error - I obviously had some untracked, rather important files for starting my pod and I ran a make clean. Why I originally had them in the git directory is anyone's guess. Anyway it blew away those files including the database so that's that. So your good self and @bender etc - apologies but your profiles got nuked as well (as did my own but easily recreated).

Another thing I noticed which was the reason I ran make clean in the first place. I noticed my pod was being built with Go 1.22.4. Could this be a problem @prologic? preflight.sh actually errors out about it...
[47ยฐ09โ€ฒ15โ€ณS, 126ยฐ43โ€ฒ20โ€ณW] Transfer aborted
Good people constantly download gigabytes of files from my hole, I doubt that SDF will allow me to do this.
Better yet, I'll write some code to do this to make it a whole lot easier to do. Should be ready by tonight
Better yet, I'll write some code to do this to make it a whole lot easier to do. Should be ready by tonight
[47ยฐ09โ€ฒ02โ€ณS, 126ยฐ43โ€ฒ40โ€ณW] Bad satellite signal -- switching to analog communication
@eldersnake There is. I'll document this tonight and send it your way! ๐Ÿคž
@eldersnake There is. I'll document this tonight and send it your way! ๐Ÿคž
[47ยฐ09โ€ฒ34โ€ณS, 126ยฐ43โ€ฒ46โ€ณW] Storm recedes -- back to normal work
@eldersnake received
@eldersnake received
@slashdot so the Ukraine had to land mines in 1324? ๐Ÿง
@slashdot so the Ukraine had to land mines in 1324? ๐Ÿง
@shreyan stressed ๐Ÿ˜… how about you?
@shreyan stressed ๐Ÿ˜… how about you?
Oops. I meant I was with b620d. But you can make a popular gopherhole on SDF.
๐Ÿงฎ USERS:1 FEEDS:2 TWTS:1005 ARCHIVED:74137 CACHE:2297 FOLLOWERS:17 FOLLOWING:14
por fin corriendo OpenBSD.. home sweet home
por fin corriendo OpenBSD.. home sweet home
@tkanos he wrote the opposite of you, though. When he said "using the web app", he meant the web page, not the old-ridden-with-bugs mobile app.
I meant to post a screenshot: https://movq.de/v/5d73604d79/20240618_21h09m16s_grim.png
I meant to post a screenshot: https://movq.de/v/5d73604d79/20240618_21h09m16s_grim.png
I meant to post a screenshot: https://movq.de/v/5d73604d79/20240618_21h09m16s_grim.png
I meant to post a screenshot: https://movq.de/v/5d73604d79/20240618_21h09m16s_grim.png
Well, I have a very basic setup going now that I can use for further experiments.

In the long run, Iโ€™m going to effectively fork dwl. Iโ€™m very glad that this project exists, saves me a lot of work. I think this is the only way forward for me โ€“ any other compositor out there requires making too many sacrifices.

The big question is: How stable is wlroots (the underlying Wayland library)? There appear to be _a lot_ of breaking changes in each release, these are the last two releases:

- https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.17.0
- https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.16.0

Will I have the resources to keep up with that? Maybe itโ€™s _still_ too early to begin this journey. ๐Ÿค”
Well, I have a very basic setup going now that I can use for further experiments.

In the long run, Iโ€™m going to effectively fork dwl. Iโ€™m very glad that this project exists, saves me a lot of work. I think this is the only way forward for me โ€“ any other compositor out there requires making too many sacrifices.

The big question is: How stable is wlroots (the underlying Wayland library)? There appear to be _a lot_ of breaking changes in each release, these are the last two releases:

- https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.17.0
- https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.16.0

Will I have the resources to keep up with that? Maybe itโ€™s _still_ too early to begin this journey. ๐Ÿค”
Well, I have a very basic setup going now that I can use for further experiments.

In the long run, Iโ€™m going to effectively fork dwl. Iโ€™m very glad that this project exists, saves me a lot of work. I think this is the only way forward for me โ€“ any other compositor out there requires making too many sacrifices.

The big question is: How stable is wlroots (the underlying Wayland library)? There appear to be _a lot_ of breaking changes in each release, these are the last two releases:

- https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.17.0
- https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.16.0

Will I have the resources to keep up with that? Maybe itโ€™s _still_ too early to begin this journey. ๐Ÿค”
Well, I have a very basic setup going now that I can use for further experiments.

In the long run, Iโ€™m going to effectively fork dwl. Iโ€™m very glad that this project exists, saves me a lot of work. I think this is the only way forward for me โ€“ any other compositor out there requires making too many sacrifices.

The big question is: How stable is wlroots (the underlying Wayland library)? There appear to be _a lot_ of breaking changes in each release, these are the last two releases:

- https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.17.0
- https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/0.16.0

Will I have the resources to keep up with that? Maybe itโ€™s _still_ too early to begin this journey. ๐Ÿค”