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

Allow multiple base_urls for webmentions' sake #44

Open
jmacdotorg opened this issue Feb 5, 2020 · 1 comment
Open

Allow multiple base_urls for webmentions' sake #44

jmacdotorg opened this issue Feb 5, 2020 · 1 comment

Comments

@jmacdotorg
Copy link
Owner

If a Plerd-based blog adheres the now-common practice of forwarding http:// requests to https://, then it won't recognize a well-intentioned webmention sent to the http://-based URL. And this more generally holds true for all situations where a blog quietly redirects all requests to other URLs derivable from the requested ones.

One way to fix this would be to support multiple base_urls in the config -- or one base_url but several recognized aliases. Plerd would then (internally) file its post objects under multiple URLs, making it more flexible about what webmentions it accepts.

@jmacdotorg
Copy link
Owner Author

A day later, this solution to a real problem feels too complicated.

A simpler fix: Allow the user to define a filter function which all webmention target URLs would pass through. The function can do anything it wishes, and outputs another URL at the end. (Perhaps transforming the input URL, perhaps not.) Plerd would then use that filtered output URL for the lookup, without the need for any further changes to business logic or internal structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant