Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

removed extra fields

daniel31x1318e0b8b01065
diff --git a/pages/settings/appearance.tsx b/pages/settings/appearance.tsx
index 26fb0b21..3ff1eb70 100644
--- a/pages/settings/appearance.tsx
+++ b/pages/settings/appearance.tsx
@@ -99,46 +99,12 @@ export default function Appearance() {
</div>
</div>
- <div>
- <div className="flex items-center gap-2 w-full rounded-md h-8">
- <p className="truncate w-full pr-7 text-3xl font-thin">Link Card</p>
- </div>
-
- <div className="divider my-3"></div>
-
- <Checkbox
- label="Display Icons"
- state={user.displayLinkIcons}
- onClick={() =>
- setUser({ ...user, displayLinkIcons: !user.displayLinkIcons })
- }
- />
- {user.displayLinkIcons ? (
- <Checkbox
- label="Blurred"
- className="pl-5 mt-1"
- state={user.blurredFavicons}
- onClick={() =>
- setUser({ ...user, blurredFavicons: !user.blurredFavicons })
- }
- />
- ) : undefined}
- <p className="my-3">Preview:</p>
-
- <LinkPreview
- settings={{
- blurredFavicons: user.blurredFavicons,
- displayLinkIcons: user.displayLinkIcons,
- }}
- />
- </div>
-
- <SubmitButton
+ {/* <SubmitButton
onClick={submit}
loading={submitLoader}
label="Save"
className="mt-2 mx-auto lg:mx-0"
- />
+ /> */}
</div>
</SettingsLayout>
);
diff --git a/prisma/migrations/20231202183159_remove_extra_fields/migration.sql b/prisma/migrations/20231202183159_remove_extra_fields/migration.sql
new file mode 100644
index 00000000..5380a30c
--- /dev/null
+++ b/prisma/migrations/20231202183159_remove_extra_fields/migration.sql
@@ -0,0 +1,10 @@
+/*
+ Warnings:
+
+ - You are about to drop the column `blurredFavicons` on the `User` table. All the data in the column will be lost.
+ - You are about to drop the column `displayLinkIcons` on the `User` table. All the data in the column will be lost.
+
+*/
+-- AlterTable
+ALTER TABLE "User" DROP COLUMN "blurredFavicons",
+DROP COLUMN "displayLinkIcons";
diff --git a/prisma/schema.prisma b/prisma/schema.prisma
index dd91892a..6ea1bda5 100644
--- a/prisma/schema.prisma
+++ b/prisma/schema.prisma
@@ -45,8 +45,6 @@ model User {
archiveAsPDF Boolean @default(true)
archiveAsWaybackMachine Boolean @default(false)
isPrivate Boolean @default(false)
- displayLinkIcons Boolean @default(true)
- blurredFavicons Boolean @default(false)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt @default(now())
}