Midnight Pub

Post from Emacs!

~uirapuru

I have put together a simple emacs lisp script to enable one to post and reply

to midnight pub from the confort of emacs, I plan on making it a minor-mode for

Elpher, but for now all you have to do is call one of the three provided

functions from the buffer where you wrote your post: mpub-post, mpub-reply,

mpub-reply-thread. In the case of the first the post title is the name of your

buffer without the file extension, and for the latter two you will be prompted

for the post id to reply to.

https://git.sr.ht/~mathgamain/emacs-mpub/tree/main/item/mpub.el

The same way as with the shell script provided by ~m15o, you have to put your

midnight pub cookie on ~/.config/.midnight

gemini://midnight.pub/posts/263

Also, it depends on request.el:

https://github.com/tkf/emacs-request

Hope you enjoy it!


ew

Hello, this reminds me, that I never got midnight.sh to work. So I log in via Firefox, I find said session cookie in

"Hamburger Menu" > "More Tools" > "Web Developer Tools" click on Storage. I click on the line starting with "midn" "some_long_garbage" ... Well, excuse me, but what exactly goes into the file? Just one line? Three? More?

midn="some_long_garbage"

With quotes? anything missing? Does it need the two following empty line?

midn="some_long_garbage";"";""

or something such?

Just put the cookie into that file, I hear you. But I'm clueless.

~bartender? How about some more of that moonshine out of that cupboard? Thanks.

reply

uirapuru

just the "some_long_garbage" without quotes and in a single line.

reply

ew

Thanks for your help!

$ ./bin/midnight.sh -r808 < test.gmi
Forbidden

Adding bash -vx and curl -vv does not enlighten the situation. :-( oh well ...

reply

contrarian

You might like textboard.org. It's written in MIT Scheme.

reply

m15o

This is incredible, thank you ~uirapuru!

reply