Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3103293
D13813.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1011 B
Referenced Files
None
Subscribers
None
D13813.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D13813: [keyserver] remove commbot after creating community
Attached
Detach File
Event Timeline
Log In to Comment