Page MenuHomePhabricator

D13813.diff
No OneTemporary

D13813.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,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;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Oct 31, 12:28 PM (20 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2392571
Default Alt Text
D13813.diff (1011 B)

Event Timeline