This creates a message based on a cast and converts it to a sidebar. If there is a parent cast included in the webhook event, we use the parent cast, if not, we use the tagger's cast.
Depends D13815
Example sidebar creation with commbot
Paths
| Differential D13782 Authored by will on Oct 23 2024, 10:38 PM.
Details Summary This creates a message based on a cast and converts it to a sidebar. If there is a parent cast included in the webhook event, we use the parent cast, if not, we use the tagger's cast. Depends D13815 Example sidebar creation with commbot Test Plan Triggered the creation of a new community with a webhook POST request and confirmed sidebar was correctly created in the community
Diff Detail
Event TimelineHerald added a subscriber: tomek. · View Herald TranscriptOct 23 2024, 10:38 PM2024-10-23 22:38:28 (UTC-7) will added a child revision: D13783: [keyserver] create invite link based on newly created sidebar.Oct 23 2024, 10:42 PM2024-10-23 22:42:56 (UTC-7) will added a parent revision: D13775: [keyserver] add community creation logic to farcaster webhook responder. Harbormaster completed remote builds in B32359: Diff 45364.Oct 23 2024, 10:55 PM2024-10-23 22:55:43 (UTC-7)
Comment Actions Can you a share a screenshot of an example message/sidebar that is created this way?
This revision now requires changes to proceed.Oct 24 2024, 6:20 AM2024-10-24 06:20:30 (UTC-7) will edited the summary of this revision. (Show Details)Oct 29 2024, 11:27 PM2024-10-29 23:27:57 (UTC-7) will edited parent revisions, added: D13815: [keyserver] check if viewer role is positive for updateThread; removed: D13812: [keyserver] Add dontCheckJoinPermissions override option to createThread for sidebar. will edited the summary of this revision. (Show Details)Oct 30 2024, 12:15 AM2024-10-30 00:15:28 (UTC-7) will edited parent revisions, added: D13816: [keyserver] add dontAddViewerAsMember to createThread; removed: D13815: [keyserver] check if viewer role is positive for updateThread. will removed a parent revision: D13816: [keyserver] add dontAddViewerAsMember to createThread.Oct 30 2024, 10:11 AM2024-10-30 10:11:22 (UTC-7) will edited the summary of this revision. (Show Details)Oct 30 2024, 11:12 AM2024-10-30 11:12:07 (UTC-7) will added a parent revision: D13815: [keyserver] check if viewer role is positive for updateThread. will marked 2 inline comments as done. Comment Actionsfeedback and rebase
Comment Actions accidentally left a console.log
will edited the summary of this revision. (Show Details)Oct 30 2024, 1:22 PM2024-10-30 13:22:08 (UTC-7) Harbormaster completed remote builds in B32453: Diff 45486.Oct 30 2024, 2:03 PM2024-10-30 14:03:06 (UTC-7) Harbormaster completed remote builds in B32454: Diff 45487.Oct 30 2024, 2:10 PM2024-10-30 14:10:47 (UTC-7) ashoat added inline comments.
This revision is now accepted and ready to land.Oct 30 2024, 2:39 PM2024-10-30 14:39:25 (UTC-7) Harbormaster completed remote builds in B32462: Diff 45495.Oct 30 2024, 6:54 PM2024-10-30 18:54:18 (UTC-7)
Harbormaster completed remote builds in B32472: Diff 45505.Oct 31 2024, 6:25 AM2024-10-31 06:25:49 (UTC-7) Harbormaster completed remote builds in B32495: Diff 45529.Oct 31 2024, 10:51 AM2024-10-31 10:51:53 (UTC-7) Closed by commit rCOMM65ca88236580: [keyserver] create message and sidebar based on cast (authored by will). · Explain WhyOct 31 2024, 12:19 PM2024-10-31 12:19:17 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 45529 keyserver/src/responders/farcaster-webhook-responders.js
lib/shared/sidebar-utils.js
|
This logic is a bit confusing.
I guess the reason we decided to store a separate deviceToken per keyserver is because we want to know if we've shared our deviceToken to that keyserver yet, not because we expect to have a different deviceToken per keyserver.
It would probably make more sense if we have a deviceTokenHasBeenUploaded: boolean in KeyserverInfo, and a deviceToken field at the top level of Redux. But we'll likely end up removing deviceTokens from keyservers soon anyways...