diff --git a/keyserver/src/frog/frog.js b/keyserver/src/frog/frog.js --- a/keyserver/src/frog/frog.js +++ b/keyserver/src/frog/frog.js @@ -16,8 +16,8 @@ function startFrogHonoServer() { const frogApp = new Frog({ title: 'frog app' }); - frogApp.frame('/:inviteLink/:channelID', async c => { - const { inviteLink, channelID } = c.req.param(); + frogApp.frame('/:inviteLink/:channelID/:taggerUsername', async c => { + const { inviteLink, channelID, taggerUsername } = c.req.param(); let buttonLink = 'https://comm.app'; const inviteLinkURLPrefix = inviteLinkURL(''); @@ -45,6 +45,11 @@ header_image_url = channelInfo.header_image_url; } + const displayUsername = + taggerUsername.length > 16 + ? `${taggerUsername.slice(0, 16)}[...]` + : taggerUsername; + return c.res({ image: (
+