Skip to content

Commit 8e5e864

Browse files
committed
update scheduled
1 parent 89a21c4 commit 8e5e864

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

‎frontend/main/src/components/ScheduleCards.tsx‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@ export default function ScheduleCards({
1717
{posts.map((post) => {
1818
return (
1919
<div
20-
className="p-4 grid gap-2 transition-all rounded-md shadow-lg dark:text-primary-50 dark:bg-basics-600 hover:shadow-2xl hover:scale-105 cursor-pointer bg-basics-50"
20+
className="grid gap-2 p-4 transition-all rounded-md shadow-lg cursor-pointer dark:text-primary-50 dark:bg-basics-600 hover:shadow-2xl hover:scale-105 bg-basics-50"
2121
key={post._id}
2222
>
23-
<Link href="https://twitch.tv/codingcatdev">
23+
<a
24+
href="https://twitch.tv/codingcatdev"
25+
target="blank"
26+
rel="noopener noreferrer"
27+
>
2428
<>
2529
<Image
2630
src={`${post?.coverPhoto?.public_id}`}
@@ -66,13 +70,13 @@ export default function ScheduleCards({
6670
? new Date(post.recordingDate).toLocaleString()
6771
: ''}
6872
</time>
69-
<h2 className="bold font-sans lg:text-2xl">
73+
<h2 className="font-sans bold lg:text-2xl">
7074
{post?.title?.replace(re, '')}
7175
</h2>
7276
<p className="text-lg font-thin">{post?.excerpt}</p>
7377
</div>
7478
</>
75-
</Link>
79+
</a>
7680
</div>
7781
);
7882
})}

‎frontend/main/src/services/notion.server.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,13 @@ export const queryPurrfectStreamByScheduled = async (
796796
],
797797
});
798798

799-
return await formatPosts(raw, 'podcast');
799+
// If scheduled and not missing cover
800+
const ready = {
801+
...raw,
802+
results: raw.results.filter((p: any) => p?.cover),
803+
};
804+
805+
return await formatPosts(ready, 'podcast');
800806
};
801807

802808
export const queryPurrfectStreamBySlug = async (

0 commit comments

Comments
 (0)