stacker.news icon indicating copy to clipboard operation
stacker.news copied to clipboard

Duplicate post send to Nostr when editing SN

Open rideandsmile opened this issue 7 months ago • 7 comments

Describe the problem you're trying to solve

I m crossposting an article between SN and Nosts.

And i realized if i want to edit the original post on SN ( cause of a mistake , missing items...) in that case a new post will be sendone more time to Nostr.

Describe the solution you'd like

is it possible to avoid to send to Nostr one more time when editing on SN ?

Describe alternatives you've considered

No response

Additional context

No response

rideandsmile avatar May 30 '25 11:05 rideandsmile

is it possible to avoid to send to Nostr one more time when editing on SN ?

Sorry for the bad experience! We have plans to only publish to nostr when the edit timer ran out but we didn't get to it yet.

ekzyis avatar May 31 '25 08:05 ekzyis

oki dok thks

rideandsmile avatar May 31 '25 10:05 rideandsmile

Hi @ekzyis, just looking at this. Was wondering if an appropriate approach to this might be scheduling crossposting as a worker job in socialPoster when the item is created, (createdAt + ITEM_EDIT_SECONDS), instead of immediately crossposting after submitting here: https://github.com/stackernews/stacker.news/blob/37d7ed59bba770ca79e20f86318e9a6237d1a0bd/components/use-item-submit.js#L89-L92

brymut avatar Jun 18 '25 17:06 brymut

I mentioned how I think this should be solved in this comment

ekzyis avatar Jun 18 '25 17:06 ekzyis

I mentioned how I think this should be solved in this comment

ahhh, thanks, I'll read through that convo

brymut avatar Jun 18 '25 17:06 brymut

I mentioned how I think this should be solved in this comment

Is nostr pre-signing currently available? Seems like that might need to be introduced and storing the posts before we send them out after the edit timer via a worker.

brymut avatar Jun 23 '25 10:06 brymut

We don't store pre-signed nostr events yet so that would be part of this issue

ekzyis avatar Jun 23 '25 11:06 ekzyis