Add /feed urls to home, profile, community, and multicommunity.#3767
Add /feed urls to home, profile, community, and multicommunity.#3767
Conversation
- You can now go to any of the above pages, add `/feed` to the url, and it will redirect to the correct back-end lemmy rss feed. - Fixes #3215
|
I tried this with Mastodon and Discourse, they both use .rss: |
| export default async (req: Request, res: Response) => { | ||
| const name = req.params.name; | ||
| res.redirect(profileRSSUrl(name)); | ||
| }; |
There was a problem hiding this comment.
No need to make a separate file for each of these, just use src/server/handlers/feed-handlers.ts
|
|
||
| export function notificationsRSSUrl(auth: string): string { | ||
| return httpBackendUrl(`/feeds/notifications/${auth}.xml`); | ||
| } |
There was a problem hiding this comment.
Better to define all this directly in the handler file, then its all in one place, easy to find and its not in the way here.
There was a problem hiding this comment.
Some of them are used elsewhere, and not used by the feed handler. So I wanted to keep all the RSS shortcuts together in one place.
|
What about this?
|
|
I could add those in addition I suppose. The I'll add a |
/feedto the url, and it will redirect to the correct back-end lemmy rss feed.