Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9cfdb714c3 | |||
| ca093008b7 | |||
| 3dc99eff9d | |||
| 530e83ba34 | |||
| 4ae75634ca | |||
| 372ed248f1 |
@@ -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:
|
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
|
<a href="https://discord.com/invite/CtuYV47nuJ"><img src="https://img.shields.io/discord/1117993124669702164?logo=discord&style=flat" alt="Discord"></a>
|
||||||
" 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
|
## Suggestions
|
||||||
|
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ export default async function archiveHandler(link: LinksAndCollectionAndOwner) {
|
|||||||
await page.goBack();
|
await page.goBack();
|
||||||
} else if (!link.preview?.startsWith("archive")) {
|
} else if (!link.preview?.startsWith("archive")) {
|
||||||
console.log("No og:image found");
|
console.log("No og:image found");
|
||||||
page
|
await page
|
||||||
.screenshot({ type: "jpeg", quality: 20 })
|
.screenshot({ type: "jpeg", quality: 20 })
|
||||||
.then((screenshot) => {
|
.then((screenshot) => {
|
||||||
return createFile({
|
return createFile({
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ async function migrateToV2() {
|
|||||||
if (res) {
|
if (res) {
|
||||||
await prisma.link.update({
|
await prisma.link.update({
|
||||||
where: { id: link.id },
|
where: { id: link.id },
|
||||||
data: { pdfPath: path },
|
data: { pdf: path },
|
||||||
});
|
});
|
||||||
console.log(`${link.id}`);
|
console.log(`${link.id}`);
|
||||||
} else {
|
} else {
|
||||||
@@ -105,7 +105,7 @@ async function migrateToV2() {
|
|||||||
if (res) {
|
if (res) {
|
||||||
await prisma.link.update({
|
await prisma.link.update({
|
||||||
where: { id: link.id },
|
where: { id: link.id },
|
||||||
data: { screenshotPath: path },
|
data: { image: path },
|
||||||
});
|
});
|
||||||
console.log(`${link.id}`);
|
console.log(`${link.id}`);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user