Comparing version 0.0.1-main.20240209T235911 to 0.0.1-main.20240210T034054
@@ -28,2 +28,4 @@ import { jsx as _jsx, jsxs as _jsxs } from "hono/jsx/jsx-runtime"; | ||
const context = await getFrameContext(c, previousContext); | ||
if (context.url !== parsePath(c.req.url)) | ||
return c.redirect(`${context.url}?previousContext=${query.previousContext}`); | ||
const { action, imageAspectRatio, intents } = await handler(context, previousContext); | ||
@@ -44,4 +46,2 @@ const parsedIntents = intents ? parseIntents(intents) : null; | ||
postSearch.set('previousContext', serializedPreviousContext); | ||
if (context.url !== parsePath(c.req.url)) | ||
return c.redirect(context.url); | ||
return c.render(_jsxs("html", { lang: "en", children: [_jsxs("head", { children: [_jsx("meta", { property: "fc:frame", content: "vNext" }), _jsx("meta", { property: "fc:frame:image", content: `${parsePath(context.url)}/image?${ogSearch.toString()}` }), _jsx("meta", { property: "fc:frame:image:aspect_ratio", content: imageAspectRatio ?? '1.91:1' }), _jsx("meta", { property: "og:image", content: `${parsePath(context.url)}/image?${ogSearch.toString()}` }), _jsx("meta", { property: "fc:frame:post_url", content: `${action ? toBaseUrl(c.req.url) + (action || '') : context.url}?${postSearch}` }), parsedIntents, _jsx("meta", { property: "farc:context", content: serializedContext }), query.previousContext && (_jsx("meta", { property: "farc:prev_context", content: query.previousContext }))] }), _jsx("body", { style: { | ||
@@ -48,0 +48,0 @@ alignItems: 'center', |
{ | ||
"name": "farc", | ||
"version": "0.0.1-main.20240209T235911", | ||
"version": "0.0.1-main.20240210T034054", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "module": "_lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
297162
2505