Compare commits

...

8 Commits

Author SHA1 Message Date
Daniel e4cf682217 Merge pull request #372 from linkwarden/dev
minor bug fixed
2023-12-29 10:53:41 -05:00
daniel31x13 e4fc8948fa minor bug fixed 2023-12-29 10:52:08 -05:00
Daniel 9cfdb714c3 Merge pull request #366 from linkwarden/dev
bugs fixed
2023-12-27 19:44:32 -05:00
daniel31x13 ca093008b7 bugs fixed 2023-12-27 19:44:11 -05:00
Daniel 3dc99eff9d Merge pull request #364 from linkwarden/dev
updated README
2023-12-27 18:27:59 -05:00
daniel31x13 530e83ba34 updated README 2023-12-27 18:27:30 -05:00
Daniel 4ae75634ca Merge pull request #363 from linkwarden/dev
updated README
2023-12-27 18:17:44 -05:00
daniel31x13 372ed248f1 updated README 2023-12-27 18:17:16 -05:00
3 changed files with 7 additions and 8 deletions
+3 -4
View File
@@ -74,12 +74,11 @@ We've forked the old version from the current repository into [this repo](https:
Join and follow us in the following platforms to stay up to date about the most recent features and for support:
<a href="https://discord.com/invite/CtuYV47nuJ"><img src="https://img.shields.io/discord/1117993124669702164?style=flat-square&logo=discord&logoColor=white&label=DISCORD&color=%2350c728
" alt="Discord"></a>
<a href="https://discord.com/invite/CtuYV47nuJ"><img src="https://img.shields.io/discord/1117993124669702164?logo=discord&style=flat" alt="Discord"></a>
<a href="https://fosstodon.org/@linkwarden"><img src="https://img.shields.io/mastodon/follow/110748840237143200?domain=https%3A%2F%2Ffosstodon.org&style=flat-square&logo=mastodon&logoColor=white&label=MASTODON&color=%2350c728" alt="Mastodon"></a>
<a href="https://twitter.com/LinkwardenHQ"><img src="https://img.shields.io/twitter/follow/linkwarden" alt="Twitter"></a>
<a href="https://twitter.com/LinkwardenHQ"><img src="https://img.shields.io/twitter/follow/linkwarden?label=TWITTER&style=flat-square&logo=x&logoColor=white&color=%2350c728" alt="Twitter"></a>
<a href="https://fosstodon.org/@linkwarden"><img src="https://img.shields.io/mastodon/follow/110748840237143200?domain=https%3A%2F%2Ffosstodon.org" alt="Mastodon"></a>
## Suggestions
+2 -2
View File
@@ -142,7 +142,7 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
if (buffer) {
// Load the image using Jimp
Jimp.read(buffer, async (err, image) => {
if (image) {
if (image && !err) {
image?.resize(1280, Jimp.AUTO).quality(20);
const processedBuffer = await image?.getBufferAsync(
Jimp.MIME_JPEG
@@ -171,7 +171,7 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
await page.goBack();
} else if (!link.preview?.startsWith("archive")) {
console.log("No og:image found");
page
await page
.screenshot({ type: "jpeg", quality: 20 })
.then((screenshot) => {
return createFile({
+2 -2
View File
@@ -88,7 +88,7 @@ async function migrateToV2() {
if (res) {
await prisma.link.update({
where: { id: link.id },
data: { pdfPath: path },
data: { pdf: path },
});
console.log(`${link.id}`);
} else {
@@ -105,7 +105,7 @@ async function migrateToV2() {
if (res) {
await prisma.link.update({
where: { id: link.id },
data: { screenshotPath: path },
data: { image: path },
});
console.log(`${link.id}`);
} else {