Skip to content

Commit

Permalink
Fixed community RSS xml
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Nov 25, 2024
1 parent 373845b commit 3311e34
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NextRequest } from "next/server";
import { AccountRssHandler } from "@/features/rss";
import { CommunityRssHandler } from "@/features/rss";

interface Props {
params: Promise<{ community: string; tag: string }>;
Expand All @@ -8,7 +8,7 @@ interface Props {
export async function GET(request: NextRequest, { params }: Props) {
const { community, tag } = await params;
return new Response(
(await new AccountRssHandler(request.nextUrl.pathname, community, tag).getFeed()).xml(),
(await new CommunityRssHandler(request.nextUrl.pathname, community, tag).getFeed()).xml(),
{ headers: { "Content-Type": "text/xml" } }
);
}

0 comments on commit 3311e34

Please sign in to comment.