Repository navigation
Serve the followed feeds at /.well-known/following.opml - #47
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This adds FollowSpec:
/.well-known/following.opmlanswers with one flat OPML subscription list of the feeds in all blogrolls that are listed in the directory, astext/x-opmlwithAccess-Control-Allow-Origin: *.It is not an alias of
/.well-known/recommendations.opml. That file only points to the OPML of each blogroll (type="include"), and FollowSpec readers expect thexmlUrls directly. Links without a feed are left out, and a feed that is in several blogrolls is listed once. Unlisted blogrolls stay out, the same as in the directory. The file has an ETag and answersIf-None-Matchwith a 304, andOPTIONSfor browsers on other sites.If the SocialSpec plugin is active, Blockroll does not serve a file of its own. It adds the blogroll feeds to the
following.opmlof SocialSpec with thesocialspec_followingfilter, so bookmarks and feeds from other plugins stay in the list. Feeds that are already in there are not added twice.Without any listed blogroll, both well-known files now answer with an empty list instead of the home page.
An update does not flush the rewrite rules, so the plugin compares its well-known rules with the stored ones and flushes once if they differ. That also covers SocialSpec being activated or deactivated later.
The spec is still an RFC (socialspec/followspec.org#1), so details might change.