Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added Nostr feed support #471

Merged
merged 53 commits into from
Jan 4, 2025
Merged

Conversation

KotlinGeekDev
Copy link
Contributor

@KotlinGeekDev KotlinGeekDev commented Dec 26, 2024

This PR adds support for using the Nostr protocol, specifically the long form content part of the specifications, and to support using Nostr URIs as a way to fetch the feed of a particular author.
The PR also adds support for identifying Nostr URIs in OPML files when importing them.
A demo of how this integration works is shown below:

feeder-demo-pr.mp4

Thank you for your work.

KotlinGeekDev and others added 30 commits December 3, 2024 12:55
…to nreqProfile() to match function's use. Add default relays, and Nostr Client.
…f relays are not found from parsing the Nostr URI.
…serPublishRelays() if relays are not found from parsing the Nostr URI.
…icles. Add a default set of relays for articles.
@KotlinGeekDev
Copy link
Contributor Author

Looks very interesting. Thanks for contributing!

I'll take a closer look as soon as I'm back at a proper screen.

Thank you for looking into this. I hope the code will not have many issues for you.

Copy link
Owner

@spacecowboy spacecowboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay. I've added some comments. Gonna build it and try it also

@KotlinGeekDev
Copy link
Contributor Author

Thanks for the review! Please, I left some comments above about the rationale for some choices in the code.
Perhaps we can find another way to fix them.
Thank you.

@KotlinGeekDev
Copy link
Contributor Author

KotlinGeekDev commented Jan 2, 2025

Also, please @spacecowboy you can try out this OPML file , and this Nostr author's profile as well - nostr:npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn .

@spacecowboy
Copy link
Owner

I suggest that you do not rename string resources. You'll get constant conflicts with translations

@spacecowboy
Copy link
Owner

and on that theme, don't change the string to url/uri. Regular users have no idea what the difference is

@KotlinGeekDev
Copy link
Contributor Author

and on that theme, don't change the string to url/uri. Regular users have no idea what the difference is

Got it. Let me fix that.

@KotlinGeekDev
Copy link
Contributor Author

Everything is fixed now.

Copy link
Owner

@spacecowboy spacecowboy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work.

Found some issues in my tests, I've added suggested changes above.

Also two general questions about number of relays used.

@KotlinGeekDev
Copy link
Contributor Author

Thanks for the review. I answered the questions and made the necessary fixes.

@KotlinGeekDev
Copy link
Contributor Author

Everything is now alright, @spacecowboy .

@spacecowboy
Copy link
Owner

Thank you @KotlinGeekDev . I think it's allright to merge now

@spacecowboy spacecowboy changed the title Nostr feeds support added Nostr feed support Jan 4, 2025
@spacecowboy spacecowboy merged commit 7fae5a3 into spacecowboy:master Jan 4, 2025
2 checks passed
@KotlinGeekDev
Copy link
Contributor Author

Thank you @KotlinGeekDev . I think it's allright to merge now

Thank you @spacecowboy for taking the time to review the PR and merge it,
and thanks for your work on Feeder! 🙏

@KotlinGeekDev KotlinGeekDev deleted the nostr-feeds branch January 4, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants