-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Conversation
…to nreqProfile() to match function's use. Add default relays, and Nostr Client.
… does not have one.
…f relays are not found from parsing the Nostr URI.
…serPublishRelays() if relays are not found from parsing the Nostr URI.
…dels. Actually use AuthorNostrData.
…account the input being handled.
…tly). Fix the if-else in searchForFeeds().
…ostr feed can be saved.
…ostr feed can be saved, pt. 2.
… working relays as well.
…icles. Add a default set of relays for articles.
…em. Clear all relays for user after fetch.
Thank you for looking into this. I hope the code will not have many issues for you. |
… is fetched anyways.
There was a problem hiding this 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
app/src/main/java/com/nononsenseapps/feeder/model/FeedParser.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nononsenseapps/feeder/model/FeedParser.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nononsenseapps/feeder/model/FeedParser.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nononsenseapps/feeder/ui/compose/searchfeed/SearchFeedScreen.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nononsenseapps/feeder/ui/compose/searchfeed/SearchFeedScreen.kt
Show resolved
Hide resolved
app/src/main/java/com/nononsenseapps/feeder/ui/compose/searchfeed/SearchFeedViewModel.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nononsenseapps/feeder/ui/compose/searchfeed/SearchFeedViewModel.kt
Outdated
Show resolved
Hide resolved
Thanks for the review! Please, I left some comments above about the rationale for some choices in the code. |
Also, please @spacecowboy you can try out this OPML file , and this Nostr author's profile as well - |
I suggest that you do not rename string resources. You'll get constant conflicts with translations |
and on that theme, don't change the string to |
Got it. Let me fix that. |
Everything is fixed now. |
There was a problem hiding this 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.
app/src/main/java/com/nononsenseapps/feeder/model/FeedParser.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nononsenseapps/feeder/model/RssLocalSync.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/nononsenseapps/feeder/ui/compose/searchfeed/SearchFeedViewModel.kt
Outdated
Show resolved
Hide resolved
…data if we dont succeed with the tried relays.
Thanks for the review. I answered the questions and made the necessary fixes. |
Everything is now alright, @spacecowboy . |
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, |
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.