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 = {};