Skip to content

Commit

Permalink
Update post.service.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
RiXelanya committed Mar 23, 2024
1 parent 7aba625 commit b972fab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/post.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -848,6 +849,7 @@ export class PostService {
selectedUserIds,
};
} catch (error) {
console.error(error);
throw error;
}
}
Expand Down

0 comments on commit b972fab

Please sign in to comment.