Skip to content

Commit

Permalink
fix cast action
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKevinOConnell committed Sep 12, 2024
1 parent c7ca361 commit c24bda7
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/app/frames/actions/view-on-explorer/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ export const GET = frames(async (ctx: any) => {
};
});

export const POST = frames(async (ctx: any) => {
export const POST = frames(async (ctx) => {
const hash = ctx.message?.castId?.hash;

return {
image: seo.ogImage,
buttons: [
<Button action="link" target={`${seo.url}/${hash}`}>
View on Neynar Explorer
</Button>,
],
};
return Response.json({
message: `View on Neynar Explorer`,
link: `${seo.url}/${hash}`,
type: 'message',
});
});

0 comments on commit c24bda7

Please sign in to comment.