diff --git a/lib/utils/neynar-client.js b/lib/utils/neynar-client.js --- a/lib/utils/neynar-client.js +++ b/lib/utils/neynar-client.js @@ -106,10 +106,7 @@ } } - async fetchFollowedFarcasterChannelsWithFilter( - fid: string, - filterFn: (channel: NeynarChannel) => boolean, - ): Promise { + async fetchFollowedFarcasterChannels(fid: string): Promise { const farcasterChannels = []; let paginationCursor = null; @@ -136,9 +133,7 @@ const { channels, next } = json; channels.forEach(channel => { - if (filterFn(channel)) { - farcasterChannels.push(channel); - } + farcasterChannels.push(channel); }); paginationCursor = next.cursor; @@ -154,10 +149,6 @@ return farcasterChannels; } - fetchFollowedFarcasterChannels(fid: string): Promise { - return this.fetchFollowedFarcasterChannelsWithFilter(fid, () => true); - } - async fetchFarcasterChannelByID(channelID: string): Promise { const params: { [string]: string } = { q: channelID,