From b972fab7bac05d528ad8b0bb079c612b7995f453 Mon Sep 17 00:00:00 2001 From: RXRD Date: Sat, 23 Mar 2024 23:16:05 +0700 Subject: [PATCH] Update post.service.ts --- src/services/post.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/post.service.ts b/src/services/post.service.ts index 4126193da..23ef50a5f 100644 --- a/src/services/post.service.ts +++ b/src/services/post.service.ts @@ -297,6 +297,7 @@ export class PostService { if (!validateURL(url)) throw new Error('InvalidURL'); embeddedURL = await getOpenGraph(url); } catch (error) { + embeddedURL = null; throw error; // ignore } @@ -848,6 +849,7 @@ export class PostService { selectedUserIds, }; } catch (error) { + console.error(error); throw error; } }