Page MenuHomePhabricator

D13783.diff
No OneTemporary

D13783.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';
@@ -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

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)

Event Timeline