Skip to content

Commit

Permalink
fix: RSS links
Browse files Browse the repository at this point in the history
  • Loading branch information
alangumer committed Dec 20, 2024
1 parent eeb268c commit 842a492
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/containers/library/playlist/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function PlaylistDetail({ playlist }: Must<IPlaylistDetailProps>): JSX.Element {
/>
) : (
<ButtonShare
shareUrl={root.lang(languageRoute).playlists.playlist(id).get()}
shareUrl={`https://audioverse.org/${languageRoute}/playlists/${id}`}
rssUrl={root
.lang(languageRoute)
.playlists.playlist(id)
Expand Down
5 changes: 4 additions & 1 deletion src/containers/sponsor/detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ function SponsorDetail({ sponsor }: Must<SponsorDetailProps>): JSX.Element {
emailSubject={title}
light
triggerClassName={styles.iconButton}
rssUrl={root.lang(languageRoute).sponsors.id(id).feed.get()}
rssUrl={root
.lang(languageRoute)
.sponsors.id(id)
.teachings.feed.get()}
contentType={CatalogEntityType.Sponsor}
id={id}
title={title}
Expand Down
5 changes: 4 additions & 1 deletion src/containers/sponsor/teachings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ function SponsorTeachings({
return (
<SponsorPivot {...{ sponsor }}>
<RssAlternate
url={root.lang(languageRoute).sponsors.id(sponsor.id).feed.get()}
url={root
.lang(languageRoute)
.sponsors.id(sponsor.id)
.teachings.feed.get()}
/>
<LineHeading color={BaseColors.RED}>
<FormattedMessage
Expand Down
5 changes: 3 additions & 2 deletions src/lib/routes/sponsors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import paginatedNode from './primatives/paginatedNode';
const sponsors = (r: string) => ({
id: (sponsorId: Scalars['ID']['output']) =>
node(`${r}/${sponsorId}`, (r) => ({
feed: node(`${r}/feed.xml`),
teachings: paginatedNode(`${r}/teachings`),
teachings: paginatedNode(`${r}/teachings`, (r) => ({
feed: node(`${r}/feed.xml`),
})),
conferences: paginatedNode(`${r}/conferences`),
series: paginatedNode(`${r}/series`),
})),
Expand Down

0 comments on commit 842a492

Please sign in to comment.