Skip to content
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/api/src/routes/api/feeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ feedsRoutes.get(
}),
);
} catch (error) {
c.var.sp.getLogger().error({ error }, `Error fetching feed`);
if (error instanceof NotFoundError) {
return c.json(
ApiErrorResponseSchema.parse({
Expand All @@ -143,6 +142,7 @@ feedsRoutes.get(
404,
);
}
c.var.sp.getLogger().error({ error }, `Error fetching feed`);
return c.json(
ApiErrorResponseSchema.parse({
statusCode: 500,
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/hooks/use-rss-feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function useRssFeed(feedId: string) {
);

const hasRssFeed = Boolean(rssFeed);
const serviceUrl = rssFeed?.config?.serviceUrl;
const serviceUrl = `${rssFeed?.config?.serviceUrl}/rss.xml`;

const {
data: rssData,
Expand Down
16 changes: 2 additions & 14 deletions apps/app/src/routes/_layout/create/feed/_tabs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,8 @@ function BasicInformationComponent() {
type: "manual",
message: "This hashtag is already taken.",
});
} catch (error) {
if (
error &&
typeof error === "object" &&
"response" in error &&
(error.response as { status: number })?.status === 404
) {
form.clearErrors("id");
} else {
form.setError("id", {
type: "manual",
message: "Network error. Please check your connection.",
});
}
} catch {
form.clearErrors("id");
} finally {
setIsValidatingId(false);
}
Expand Down
2 changes: 1 addition & 1 deletion apps/app/src/store/feed-creation-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const feedCreationStateCreator: StateCreator<
}
rssDistributor.config.feedConfig.title = values.name ?? "";
rssDistributor.config.feedConfig.description = values.description ?? "";
rssDistributor.config.serviceUrl = `https://rss.curate.fun/${values.id}/rss.xml`;
rssDistributor.config.serviceUrl = `https://rss.curate.fun/${values.id}`;
const objectTransform = rssDistributor.transform?.find(
(t) => t.plugin === "@curatedotfun/object-transform",
);
Expand Down