Skip to content

Commit

Permalink
feat: cache tips for feed claim
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Sep 10, 2024
1 parent cd72377 commit b307553
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/renderer/src/modules/claim/feed-claim-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ export const FeedClaimModalContent: FC<{
<AutoResizeHeight duration={0.1}>
<TabsContent className="mt-0 pt-3" value="content">
<p>Copy the content below and post it to your latest RSS feed.</p>
{feed.url.startsWith("rsshub://") && (
<p className="mt-1 leading-tight text-orange-800">
This feed is provided by RSSHub with a 1 hour cache time. Please allow up to 1 hour
for changes to appear after publishing content.
</p>
)}

<BaseCodeBlock>{claimMessage?.data.content || ""}</BaseCodeBlock>
</TabsContent>
Expand All @@ -79,6 +85,12 @@ export const FeedClaimModalContent: FC<{
Copy the following content and paste it into the{" "}
<code className="text-sm">{`<description />`}</code> field of your RSS feed.
</p>
{feed.url.startsWith("rsshub://") && (
<p className="mt-1 leading-tight text-orange-800">
This feed is provided by RSSHub with a 1 hour cache time. Please allow up to 1 hour
for changes to appear after modifying description.
</p>
)}
<BaseCodeBlock>{claimMessage?.data.description || ""}</BaseCodeBlock>
</TabsContent>
<TabsContent className="mt-0 pt-3" value="rss">
Expand Down

0 comments on commit b307553

Please sign in to comment.