Skip to content

Commit

Permalink
Merge branch 'develop' into style/linter
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Hoplin committed Sep 18, 2024
2 parents b615ee6 + fd4c3e5 commit 4376ab2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/utils/parser.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function parseLinkTitleAndContent(url: string): Promise<{
.replace(/<\/?[^>]+(>|$)/g, '')
.trim();
return {
title: title ?? '',
title: title ? title : 'Page Title',
content,
thumbnail: sanitizeThumbnail(thumbnail),
};
Expand Down
1 change: 0 additions & 1 deletion src/modules/posts/posts.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export class PostsService {
const { title, content, thumbnail } = await parseLinkTitleAndContent(
createPostDto.url,
);

const userFolderList = await this.folderRepository.findByUserId(userId);
const folderList = userFolderList.map((folder) => {
return {
Expand Down

0 comments on commit 4376ab2

Please sign in to comment.