HomePhabricator
Diffusion Comm d2f70e0fe779

[keyserver] add regex #createathread check

Description

[keyserver] add regex #createathread check

Summary: The regex in the Neynar dev portal is OR only, so we need to perform the regex expression check ourselves when we receive webhook events.

Test Plan:
Tested on warpcast and verifying through console logging that we early exited when the proper farcaster user was tagged but didn't include #createathread in the text body.
Checked that including #createathread in several parts of the message and lowercase/uppercase did not cause the early exit

Depends on D13754

Reviewers: ashoat, varun

Reviewed By: ashoat

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13841

Details

Provenance
willAuthored on Oct 31 2024, 7:05 AM
Reviewer
ashoat
Differential Revision
D13841: [keyserver] add regex #createathread check
Parents
rCOMMccb5664fb0dd: [keyserver] accept webhook cast created events tagging comm
Branches
Unknown
Tags
Unknown