From 31ab0e9c7987d9c7f37cfc5a9b283176d2ab4230 Mon Sep 17 00:00:00 2001 From: Joshua W <64296537+HashWarlock@users.noreply.github.com> Date: Sun, 18 Feb 2024 02:21:09 -0600 Subject: [PATCH] feat: Updated `getFrameMetadata.ts` to support `target` for button post actions (#130) --- src/core/getFrameMetadata.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/getFrameMetadata.ts b/src/core/getFrameMetadata.ts index 8aee3d3cf7..58f1b946bc 100644 --- a/src/core/getFrameMetadata.ts +++ b/src/core/getFrameMetadata.ts @@ -41,7 +41,7 @@ export const getFrameMetadata = function ({ if (button.action) { metadata[`fc:frame:button:${index + 1}:action`] = button.action; } - if ((button.action == 'link' || button.action == 'mint') && button.target) { + if ((button.action == 'link' || button.action == 'mint' || button.action == 'post') && button.target) { metadata[`fc:frame:button:${index + 1}:target`] = button.target; } });