Skip to content

Add /feed urls to home, profile, community, and multicommunity.#3767

Merged
Nutomic merged 5 commits intomainfrom
add_feed_urls
Jan 20, 2026
Merged

Add /feed urls to home, profile, community, and multicommunity.#3767
Nutomic merged 5 commits intomainfrom
add_feed_urls

Conversation

@dessalines
Copy link
Copy Markdown
Member

- 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
@Nutomic
Copy link
Copy Markdown
Member

Nutomic commented Jan 19, 2026

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));
};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to make a separate file for each of these, just use src/server/handlers/feed-handlers.ts

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

K, will do shortly.

Comment thread src/shared/utils/app.ts

export function notificationsRSSUrl(auth: string): string {
return httpBackendUrl(`/feeds/notifications/${auth}.xml`);
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@dessalines dessalines requested a review from Nutomic January 20, 2026 14:01
@Nutomic
Copy link
Copy Markdown
Member

Nutomic commented Jan 20, 2026

What about this?

I tried this with Mastodon and Discourse, they both use .rss:

@dessalines
Copy link
Copy Markdown
Member Author

I could add those in addition I suppose.

The /feed seems to be standard on most news / blogsites. IE go to https://www.androidpolice.com/ , then add https://www.androidpolice.com/feed and you get the rss feed.

I'll add a .rss extension now tho, IE things like /c/{community_name}.rss

@dessalines dessalines marked this pull request as draft January 20, 2026 14:12
@dessalines dessalines marked this pull request as ready for review January 20, 2026 14:19
@Nutomic Nutomic merged commit 70020a4 into main Jan 20, 2026
3 checks passed
@Nutomic Nutomic deleted the add_feed_urls branch January 20, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add feed / rss url redirects

2 participants