HomePhabricator
Diffusion Comm 05d0d8f070f9

[keyserver] implement invite link button to frog hono route

Description

[keyserver] implement invite link button to frog hono route

Summary:
This implements the invite link button in the frame. We take a invite link parameter in the route. The button will redirect to this link

We also check if the invite link parameter is a valid Comm invite link by checking if it is prefixed by https://comm.app/invite/. If not, we default to https://comm.app

Depends on D13947

Test Plan:
Used the warpcast frame validator https://warpcast.com/~/developers to display the frame and confirmed button redirected to invite link provided as the parameter with the following url in the warpcast frame validator: https://<keyserver url>/https%3A%2F%2Fcomm.app%2Finvite%2Fcryptoleft

Used a different link than a Comm link as a parameter and confirmed it still defaults to https://comm.app

Reviewers: varun, ashoat

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
willAuthored on Nov 19 2024, 9:14 PM
Reviewer
ashoat
Differential Revision
D13971: [keyserver] implement invite link button to frog hono route
Parents
rCOMM4afdaffa6849: [keyserver] frog hello world example
Branches
Unknown
Tags
Unknown