-
Notifications
You must be signed in to change notification settings - Fork 138
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
Fix Atom feed #764
Fix Atom feed #764
Conversation
Codecov Report
@@ Coverage Diff @@
## master #764 +/- ##
==========================================
- Coverage 39.01% 38.97% -0.04%
==========================================
Files 73 73
Lines 9700 9712 +12
Branches 2224 2226 +2
==========================================
+ Hits 3784 3785 +1
- Misses 4863 4875 +12
+ Partials 1053 1052 -1 |
Could it be possible to encode URI only for the Atom feed, not in the whole app? The JSON-LD spec (on which ActivityPub is built) says that every URI actually is an IRI, meaning it should be able to contain any Unicode character (with very few exceptions), so I don't know how percent-encoded strings are treated… |
This reverts commit 8253aa7. ActivityPub(JSON-LD) accepts URI. See Plume-org#764 (comment)
I've done! Thank you for your advice. And... actually, Atom also uses IRI. Its spec says:
This is the reason why I reverted all the code around percent-encoding. I don't know why W3C feed validator claims IRIs are errors. But, how about deploying IRI version of Atom and convert them to URI if someone reports issue about specified feed reader implementation? |
Sorry, but I'm not sure if I understand. Could you please try to rephrase ? (my English is so bad, help) |
Thank you for reply. I'm also not good at English. My English should be hard to understand. Will rephrase it. What I mean was...
|
Okay, it is clearer, thank you. Indeed, I think we can merge. |
Thank you! |
This patches include breaking change. I percent-encoded URI segments in
ap_url
s. This affects only future users, blogs and posts. Existingap_url
s will not be changed.This fixes Atom feeds so that it conform to Atom spec. This should fix Atom-related issues #673 and #735.