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,10 @@ import { createThread } from '../creators/thread-creator.js'; import { fetchThreadInfos } from '../fetchers/thread-fetchers.js'; import { createBotViewer } from '../session/bots.js'; +import { + changeRole, + commitMembershipChangeset, +} from '../updaters/thread-permission-updaters.js'; import { updateRole } from '../updaters/thread-updaters.js'; import { thisKeyserverAdmin, thisKeyserverID } from '../user/identity.js'; import { getFarcasterBotConfig } from '../utils/farcaster-bot.js'; @@ -101,6 +105,9 @@ farcasterChannelID: channelID, }); + const changeset = await changeRole(newThreadID, [commbot.userID], 0); + await commitMembershipChangeset(commbotViewer, changeset); + return newThreadResponse; }