Add r tag and change proxy #2
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1.) Write URL to "r" tag when posting the kind 30023 note to Nostr
2.) Change to cors proxy, because allorigins was prevented from fetching substack content.
Background:
ReadToRelay really scratches an itch and am currently hosting a copy on https://zeroxbob.github.io/ReadToRelay/website/index.html.
If a note of kind 30023 exists with content for a URL that was bookmarked on https://github.com/zeroxbob/pinstrjs, then I want to link to it from the bookmark. For that I need to query a relay if a long form note exists for such a URL.
I'm not 100% sure what the best place is for these URLs to live on 30023 notes. Single letter tags seem to be indexed by relays and are faster to query for than say "url". Based on https://nostrbook.dev/tags/r I think the r tag would make sense.
Alternatively, sticking to the "d" tag, which this repo already writes to with an appended timestamp would also work.
Either way, this is not pressing since the two changes are already running on the forked repo, but I thought I'd suggest these updates upstream too and get a sense of your thinking around this.