Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3351963
D13783.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.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';
@@ -288,7 +289,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
Sun, Nov 24, 4:14 AM (9 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2573862
Default Alt Text
D13783.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