This one is a honker.
Rewards updateRewards update
Rewards are now random. Every night I give a cowboy a bottle whiskey and he flips a coin. If it lands on heads, we reward the top 33% of posts/comments. If it lands on tails, we reward the zappers of the top 33% of posts/comments.
GoodiesGoodies
- nostr crossposting (via @bitcoinplebdev)
- requires nip-07 extension
- only applies to discussions currently (more is planned)
- you can set it to repost on a per post basis (in the options pane) or default to crossposting in settings
- symmetric lud-18 (via @WeAreAllSatoshi)
- you can now optionally send identifying information when you make a lightning address withdrawal ... assuming the receiver's wallet supports it
- you can also receive such information when someone sends to your lightning address
- quote replies (via @WeAreAllSatoshi)
- in the overflow aka
...for items you can now quote the item you're replying to by hittingquote reply - if you haven't highlighted text in the parent, it will quote the full item
- if you have highlighted text in the parent, it will only quote what you've highlighted
- if you have highlighted text in the parent and hit
replyit will also quote it
- in the overflow aka
- mention autocompletes (via @WeAreAllSatoshi)
- it's like it sounds ... when you hit
@sn attempts to help you find your boo
- it's like it sounds ... when you hit
- date range selection in search (via @rleed)
- full url search with the
url:filter (via @rleed) - changes to my changes of images (via @ekzyis) ... he'll have the last change
- kind of a small one ... but when you switch over to preview, you no longer lose your cursor position in the original text
PR merging vacationPR merging vacation
Take a knee contributors. PRs for new features will not be merged (by me at least) until I finish personalized feeds. Please continue to send in PRs, it just might be slightly slower turnaround than usual ... Oh, and one of your moms brought orange slices and gatorade. Help yourselves.
Please shout loud about any bugs you find!
Really awesome work everyone! SN gets better every day!
The only downside of being forwarded zaps on a post like this is I canβt zap it for the other folks lol
Love to SN's continued development
SN's continued development loves you back! π
Crossposting works!
still trying to understand how this one works
edited: just found it!
https://gcdnb.pbrd.co/images/mKGQxiUTQWE9.png?o=1
Badass. Love the @-searching with so much passion, and the reply quoting.
@WeAreAllSatoshi can you check the LUD-18 and LUD-12 option?
I tried to send some tests to chat@blixtwallet.com or darthcoin@ln.tips or darthcoin@getalby.com (all of them support LUD-18 and 12 and the modal for comment and name is not appearing in SN payment screen (using the LN address field).
If I want to send to chat@blixtwallet.com (https://chat.blixtwallet.com/) 10 sats it appear the comment and name but I get an error: Unexpected error value: [400, "expectedPaymentRequestToDecode"]
expectedPaymentRequestToDecodeappears to be coming thelightningnpm lib, and is decoding an invoice.https://github.com/alexbosworth/lightning/blob/b05f7d816363c74b31516ffbb73f541970898fe3/lnd_methods/offchain/decode_payment_request.js#L59
Perhaps the invoice request (i.e calling the callback in LNURL-pay) didn't work properly for some reason and did not return an invoice.
@hampus I see this in the logs when trying to call the invoice request from my dev machine:
{ statusCode: 500, error: 'Internal Server Error', message: 'Could not parse query params' }with a query param string of
?amount=10000&payerdata=%257B%2522identifier%2522%253A%2522SatsAllDay%2540stacker.news%2522%257DAn issue decoding the URI encoded param, maybe?
ETA: same thing when you send
name, as well. Are we doing thepayerdataquery param encoding incorrectly?@hampus Taking a look at chat.blixtwallet.com's code, I don't see any explicit decoding of the query param: https://github.com/hsjoberg/lnurl-pay-chat-server/commit/a28f998675a675a835ea1a639be2ec1f1fdae0ec#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80L226
Perhaps we're double encoding when we shouldn't be?
Yes, as far as I can tell, it seems to be double-encoded when it shouldn't be.
A quick look.
Yours require two
decodeURIComponents:// stacker.news decodeURIComponent(decodeURIComponent("%257B%2522identifier%2522%253A%2522SatsAllDay%2540stacker.news%2522%257D")); '{"identifier":"SatsAllDay@stacker.news"}' // blixt wallet decodeURIComponent("%7B%22name%22%3A%22Hampus%22%2C%22identifier%22%3A%22hampus%40blixtwallet.com%22%7D"); '{"name":"Hampus","identifier":"hampus@blixtwallet.com"}'Though I'm not sure who's in the wrong here. I'll investigate some more.
Weβre probably getting URI encoding for free with the native JS API that constructs the URL
It was some time ago I made this server, but I think Fastify is implicitly decoding the GET params. It makes it into an object.
It will naturally not attempt to decode twice, which is why the
JSON.parse()errors out.Yes, my understanding after reading the specification again is that it should not be encoded twice.
Yea that makes sense. Iβll work up a fix today!
Great!
Cheers.
https://github.com/stackernews/stacker.news/pull/545
I got this too. Iβll debug when at my computer
If you donβt include your identifier, it seems to work.
but that is just posting as anonymous
Yea, Iβm just trying to figure out what conditions cause the error. Iβm still on mobile, Iβll dig into it further in a little while
I just tried this and it seemed to work?
https://i.postimg.cc/wjpvFcGs/IMG-9387.jpg
For me appear for a second the fields and then disappear.
Only when I use chat@blixtwallet.com it stays.
Maybe after first use is something in the browser cache?
We query the ln addr provider every time you change the address, character by character. We probably need to debounce this, because if you're on the second to last character, there won't be valid metadata (e.g.
darthcoin@stacker.new), so we default the form state. If these requests resolve out of order, you could end up in a state with no LUD-12 or LUD-18 options in the form. Debouncing should resolve it.cc @k00b
https://github.com/stackernews/stacker.news/pull/545
Gah I donβt think selecting text for quote reply is working on mobile safari πΎ
I think it's only broken when doing it in the original post. There's likely some kind of race and deselecting the text is winning. I also noticed in mobile safari that the dropdown will fall behind the selection as if safari doesn't honor the dom hierarchy.
Safari doing safari things lol
Iβll experiment with it and see if I can find a fix
It's this generation's Internet Explorer
PR opened to fix this
Also noticed that the OS on Android may block me from clicking the dots, lol
https://i.postimg.cc/0ymgY1m2/Screenshot-20231005-074200-com-brave-browser.jpg
Not sure if this is fixable. But I think it's also not a big issue.
Thatβs where clicking
replyafter making your selection can be used! Itβs good to have options lolWe also squeezed in more push notification types. Everything except job updates now have a corresponding push notification (/cc @WeAreAllSatoshi since you mentioned you eagerly await them. And haha, used you during my first time using mention autocomplete). But there is a bug for the daily rewards type where only the rewards for one type will be shown.
SN keep making the work looks easy
Lol I like the drunken cowboy protocol I think it should be the norm and all your reward experiments should stick around and it flips between them to keep us guessing, kinda like monero does with trying to be ASIC resistant
I think storing my nsec in sn + adding a password to encrypt it in sn will be much easier for crossposting to nostr ?
adding this as an optional option will be helpful @k00b @bitcoinplebdev
this is not a good idea
would you do that with a bitcoin seed?
No
I'm loving all these updates and the transparency from the team. Thank you @Natalia for the heads-up on the new features.
@bitcoinplebdev @k00b I'm getting this error when crossposting in the past two days. Anything could I try to restore the fucntionality?
submit error: Nostr error: Timeout after 10000 ms waiting for extensionhttps://m.stacker.news/22074
When tried to Unlink (after connecting a secon login option) and Re-link the nostr extension I get this error
error: nostr extension failed to sign event timeouted after 5000 ms waiting for extensionhttps://m.stacker.news/22075
LUD-18 is fucking awesome!
Thank you guys!
Now I san send sats to somebody, attaching the name Christine Lagarde.
I want to escape too, Satoshi lol
Loving the cross post feature.
LFGGGG!
1- Is there is a way to crosspost without nip-07 ?
2- Can it crosspost old posts
Or batch crosspost what i posted when i use an extension browser ?
@k00b
wow, lud-18! Just tested it, basically, you can send the msg as anyone now.
https://i.postimg.cc/x8B5j8zz/Darth-laugh.gif
Mention autocompletes is cool, no more chance of typing the id wrong then ππ
I had to try it for myself. First impression? Itβs amazing! Second impression? Nostr clients have a lot of work to do to display these posts better. Some do a great job, some have unexpected formatting issues. Some donβt show them at all!
Interested to try out NOSTR cross posting!
Thanks
how can we earn the bottle whiskey?
honk honk
The cross posting on Nostr is important feature to have on SN
ππ
@MoritzK please can you check on alby why is not displaying the alias / sender from LUD-18 (when you receive from SN using an alias)?
To be honest this is really great work to say the fact.
deleted by author
What did it say?!?!
deleted by author