diff --git a/batch-service/internal/crawler/article_contents_crawler.go b/batch-service/internal/crawler/article_contents_crawler.go index dff5b3ab..cc69734d 100644 --- a/batch-service/internal/crawler/article_contents_crawler.go +++ b/batch-service/internal/crawler/article_contents_crawler.go @@ -131,7 +131,7 @@ func CreateArticle(ctx context.Context, tx *sql.Tx, arg CreateArticleArg) error ArticleURL: arg.ArticleURL, PublishedAt: null.TimeFrom(publishedAt), IsEng: arg.IsEng, - IsPrivate: true, + IsPrivate: false, } if arg.AuthorName != nil { article.AuthorName = null.StringFromPtr(arg.AuthorName) diff --git a/web/client/src/features/articles/repository/article.ts b/web/client/src/features/articles/repository/article.ts index 8d21e668..d7a7efe1 100644 --- a/web/client/src/features/articles/repository/article.ts +++ b/web/client/src/features/articles/repository/article.ts @@ -164,6 +164,11 @@ export const getArticles = async ({ ]; } + where = { + ...where, + isPrivate: false, + }; + try { const res = await prisma.article.findMany({ take: LIMIT, diff --git a/web/client/src/features/bookmarks/components/Dialog/CreateBookmarkDialog.tsx b/web/client/src/features/bookmarks/components/Dialog/CreateBookmarkDialog.tsx index 02f3e975..47d6849c 100644 --- a/web/client/src/features/bookmarks/components/Dialog/CreateBookmarkDialog.tsx +++ b/web/client/src/features/bookmarks/components/Dialog/CreateBookmarkDialog.tsx @@ -174,7 +174,7 @@ export const CreateBookmarkDialog: FC = ({ articleUrl: url, thumbnailURL: ogpData?.image || "", isEng: isEng, - isPrivate: false, + isPrivate: true, }); if (!createdArticleId) { diff --git a/web/client/src/features/favoriteArticles/components/Dialog/CreateFavoriteArticleDialog.tsx b/web/client/src/features/favoriteArticles/components/Dialog/CreateFavoriteArticleDialog.tsx index ad134b69..98e32f39 100644 --- a/web/client/src/features/favoriteArticles/components/Dialog/CreateFavoriteArticleDialog.tsx +++ b/web/client/src/features/favoriteArticles/components/Dialog/CreateFavoriteArticleDialog.tsx @@ -179,7 +179,7 @@ export const CreateFavoriteArticleDialog: FC< articleUrl: url, thumbnailURL: ogpData?.image || "", isEng: isEng, - isPrivate: false, + isPrivate: true, }); if (!createdArticleId) {