Skip to content

Commit bdefda4

Browse files
authored
Merge pull request #15614 from ethereum/patch-attestant
fix: skip attestant xml attempt
2 parents 6d4e258 + 883f2e1 commit bdefda4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/[locale]/page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { getLocaleTimestamp } from "@/lib/utils/time"
2020
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
2121

2222
import {
23+
ATTESTANT_BLOG,
2324
BASE_TIME_UNIT,
2425
BLOG_FEEDS,
2526
BLOGS_WITHOUT_FEED,
@@ -42,7 +43,8 @@ import { fetchTotalValueLocked } from "@/lib/api/fetchTotalValueLocked"
4243

4344
// API calls
4445
const fetchXmlBlogFeeds = async () => {
45-
return await fetchRSS(BLOG_FEEDS)
46+
const xmlUrls = BLOG_FEEDS.filter((feed) => ![ATTESTANT_BLOG].includes(feed))
47+
return await fetchRSS(xmlUrls)
4648
}
4749

4850
// In seconds

src/lib/constants.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ export const RSS_DISPLAY_COUNT = 6
175175

176176
export const VITALIK_FEED = "https://vitalik.eth.limo/feed.xml"
177177
export const SOLIDITY_FEED = "https://soliditylang.org/feed.xml"
178+
export const ATTESTANT_BLOG = "https://www.attestant.io/posts/"
178179

179180
export const COMMUNITY_BLOGS: CommunityBlog[] = [
180181
{
@@ -197,10 +198,7 @@ export const COMMUNITY_BLOGS: CommunityBlog[] = [
197198
name: "0xPARC",
198199
href: "https://0xparc.org/blog",
199200
},
200-
{
201-
href: "https://www.attestant.io/posts/",
202-
feed: "https://www.attestant.io/posts/",
203-
},
201+
{ href: ATTESTANT_BLOG, feed: ATTESTANT_BLOG },
204202
{ name: "Devcon", href: "https://devcon.org/en/blogs/" },
205203
{
206204
href: "https://soliditylang.org/blog/",

0 commit comments

Comments
 (0)