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
Fri, Nov 29, 10:04 AM (9 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2596632
Default Alt Text
D13813.diff (1011 B)

Event Timeline