Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3327117
D13974.id45898.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D13974.id45898.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 21, 8:17 AM (6 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2555280
Default Alt Text
D13974.id45898.diff (1 KB)
Attached To
Mode
D13974: [lib] Get rid of fetchFollowedFarcasterChannelsWithFilter
Attached
Detach File
Event Timeline
Log In to Comment