Page MenuHomePhabricator

D13974.diff
No OneTemporary

D13974.diff

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<NeynarChannel[]> {
+ async fetchFollowedFarcasterChannels(fid: string): Promise<NeynarChannel[]> {
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<NeynarChannel[]> {
- return this.fetchFollowedFarcasterChannelsWithFilter(fid, () => true);
- }
-
async fetchFarcasterChannelByID(channelID: string): Promise<?NeynarChannel> {
const params: { [string]: string } = {
q: channelID,

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 21, 8:16 AM (6 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2555280
Default Alt Text
D13974.diff (1 KB)

Event Timeline