]> Untitled Git - lemmy-ui.git/blob - src/shared/utils/app/community-rss-url.ts
fix: Fix badge alignment and break out into component
[lemmy-ui.git] / src / shared / utils / app / community-rss-url.ts
1 export default function communityRSSUrl(actorId: string, sort: string): string {
2   const url = new URL(actorId);
3   return `${url.origin}/feeds${url.pathname}.xml?sort=${sort}`;
4 }