aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-04-13 18:29:14 +0000
committerMohamed Bassem <me@mbassem.com>2025-04-13 18:29:14 +0000
commit5bdb2d944a08f63772497e203f47533ffb640d82 (patch)
treef8e77b3d6c4820dac4942724bf662a7ff57bfc15 /apps/mobile
parent1373a7b21d7b04f0fe5ea2a008c88b6a85665fe0 (diff)
downloadkarakeep-5bdb2d944a08f63772497e203f47533ffb640d82.tar.zst
fix: Dont download html content by default in the bookmark grid. Fixes #1198
Diffstat (limited to 'apps/mobile')
-rw-r--r--apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx4
-rw-r--r--apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx4
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
index ebd3a1e2..6d02af53 100644
--- a/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
+++ b/apps/mobile/app/dashboard/bookmarks/[slug]/info.tsx
@@ -147,7 +147,9 @@ const ViewBookmarkPage = () => {
data: bookmark,
isPending,
refetch,
- } = useAutoRefreshingBookmarkQuery({ bookmarkId: slug });
+ } = useAutoRefreshingBookmarkQuery({
+ bookmarkId: slug,
+ });
if (isPending) {
return <FullPageSpinner />;
diff --git a/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx b/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx
index 115d44c9..e627ee16 100644
--- a/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx
+++ b/apps/mobile/components/bookmarks/UpdatingBookmarkList.tsx
@@ -11,7 +11,7 @@ export default function UpdatingBookmarkList({
query,
header,
}: {
- query: Omit<ZGetBookmarksRequest, "sortOrder">; // Sort order is not supported in mobile yet
+ query: Omit<ZGetBookmarksRequest, "sortOrder" | "includeContent">; // Sort order is not supported in mobile yet
header?: React.ReactElement;
}) {
const apiUtils = api.useUtils();
@@ -24,7 +24,7 @@ export default function UpdatingBookmarkList({
isFetchingNextPage,
refetch,
} = api.bookmarks.getBookmarks.useInfiniteQuery(
- { ...query, useCursorV2: true },
+ { ...query, useCursorV2: true, includeContent: false },
{
initialCursor: null,
getNextPageParam: (lastPage) => lastPage.nextCursor,