Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3334310
D13783.id45497.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
D13783.id45497.diff
View Options
diff --git a/keyserver/src/responders/farcaster-webhook-responders.js b/keyserver/src/responders/farcaster-webhook-responders.js
--- a/keyserver/src/responders/farcaster-webhook-responders.js
+++ b/keyserver/src/responders/farcaster-webhook-responders.js
@@ -20,6 +20,7 @@
createOrUpdateFarcasterChannelTag,
farcasterChannelTagBlobValidator,
} from '../creators/farcaster-channel-tag-creator.js';
+import { createOrUpdatePublicLink } from '../creators/invite-link-creator.js';
import createMessages from '../creators/message-creator.js';
import { createThread } from '../creators/thread-creator.js';
import { fetchServerThreadInfos } from '../fetchers/thread-fetchers.js';
@@ -277,7 +278,14 @@
return;
}
- console.log(sidebarThreadResponse);
+ const inviteLinkName = Math.random().toString(36).slice(-9);
+ const inviteLink = await createOrUpdatePublicLink(commbotViewer, {
+ name: inviteLinkName,
+ communityID: channelCommunityID,
+ threadID: sidebarThreadResponse.newThreadID,
+ });
+
+ console.log(inviteLink);
}
export { taggedCommFarcasterResponder, taggedCommFarcasterInputValidator };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 6:52 AM (18 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2560362
Default Alt Text
D13783.id45497.diff (1 KB)
Attached To
Mode
D13783: [keyserver] create invite link based on newly created sidebar
Attached
Detach File
Event Timeline
Log In to Comment