Page MenuHomePhabricator

D13783.id45497.diff
No OneTemporary

D13783.id45497.diff

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

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)

Event Timeline