A modified version of Wafrn used on https://wf.jbc.lol (mirror of https://git.jbc.lol/jbcrn/wf.jbc.lol which is a mirror of https://codeberg.org/jbcarreon123/wf.jbc.lol)

Revert "jank: get atproto if user has wafrn fediverse url"

This reverts commit c41287b2ff775e2577eae3ad6cdaa87db3ba0db3.

+2 -2
+2 -2
packages/backend/atproto.ts
··· 1 1 import { Firehose } from '@skyware/firehose' 2 - import { CommitCreate, Jetstream } from '@skyware/jetstream' 2 + import { Jetstream } from '@skyware/jetstream' 3 3 import { getCacheAtDids } from './atproto/cache/getCacheAtDids.js' 4 4 import { Job, Queue, Worker } from 'bullmq' 5 5 import { checkCommitMentions } from './atproto/utils/checkCommitMentions.js' ··· 43 43 const cacheData = cachedDids 44 44 const commit = event.commit 45 45 46 - if (cacheData.followedDids.has(event.did) || checkCommitMentions(event.did, commit, cacheData) || commit.collection === 'net.wafrn.feed.bite' || 'fediverseUrl' in (commit as CommitCreate<"app.bsky.feed.post">)) { 46 + if (cacheData.followedDids.has(event.did) || checkCommitMentions(event.did, commit, cacheData) || commit.collection === 'net.wafrn.feed.bite') { 47 47 const data = { 48 48 repo: event.did, 49 49 operation: {