Skip to content

Commit b130487

Browse files
committed
Special-case fedi.buzz
FediBuzz implements the tag search mastodon API, but not the other timelines.
1 parent 056cf76 commit b130487

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sources.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export async function fetchPosts(cfg: Config, onProgress: (progress: Progress) =
4444
const [user, domain] = account.split('@', 2)
4545
const domains = domain ? [domain] : [...cfg.servers]
4646
for (const domain of domains) {
47+
if(domain === "fedi.buzz") continue
4748
addTask(domain, async () => {
4849
const localUser = await getLocalUser(user, domain)
4950
if (!localUser || !localUser.id) return [];
@@ -61,6 +62,7 @@ export async function fetchPosts(cfg: Config, onProgress: (progress: Progress) =
6162
// Load trends from all servers
6263
if (cfg.loadTrends) {
6364
for (const domain of cfg.servers) {
65+
if(domain === "fedi.buzz") continue
6466
addTask(domain, async () => {
6567
return await fetchJson(domain, "api/v1/trends/statuses", { limit: cfg.limit })
6668
})
@@ -71,6 +73,7 @@ export async function fetchPosts(cfg: Config, onProgress: (progress: Progress) =
7173
// or just federated posts.
7274
if (cfg.loadPublic || cfg.loadFederated) {
7375
for (const domain of cfg.servers) {
76+
if(domain === "fedi.buzz") continue
7477
const query: Record<string, any> = { limit: cfg.limit }
7578
if (!cfg.loadPublic) query.remote = "True"
7679
if (!cfg.loadFederated) query.local = "True"

0 commit comments

Comments
 (0)