From 02009a951df05aa73a532c0a5873a1a43ef71505 Mon Sep 17 00:00:00 2001 From: Harsh Date: Tue, 22 Oct 2024 11:47:00 +0530 Subject: [PATCH] Fixes name on autogenerated image --- packages/utils/social/og.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/utils/social/og.ts b/packages/utils/social/og.ts index 9010ee4b0..7078973b3 100644 --- a/packages/utils/social/og.ts +++ b/packages/utils/social/og.ts @@ -10,8 +10,7 @@ const stripEmojis = (str: string) => .trim(); export const getAutogeneratedPostOG = (post: any, publication: any) => { - const { author } = publication; - const { title, readTimeInMinutes, reactionCount = 0, responseCount = 0 } = post; + const { title, readTimeInMinutes, reactionCount = 0, responseCount = 0, author } = post; const ogUrl = `${publication.url}/api/og/post`; const ogData: any = {};