From 22b171c858fa721869d74f2ffa833a5332627f9f Mon Sep 17 00:00:00 2001 From: Flummi Date: Sat, 7 May 2022 10:21:32 +0200 Subject: [PATCH 1/2] emphasis on active id in pagination --- public/s/css/f0ck.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/s/css/f0ck.css b/public/s/css/f0ck.css index 899bc41..1243113 100644 --- a/public/s/css/f0ck.css +++ b/public/s/css/f0ck.css @@ -502,8 +502,9 @@ a.btn.disabled { } .btn.disabled, .btn:disabled { - opacity: 0.65; user-select: none; + font-weight: bold; + text-shadow: 1px 1px 1px var(--black); } h5 { From 86409c9d98b6081c0a1a90965082783f3d25e94c Mon Sep 17 00:00:00 2001 From: Flummi Date: Sat, 7 May 2022 10:29:53 +0200 Subject: [PATCH 2/2] telegram magic --- package-lock.json | 14 +++++++------- package.json | 2 +- src/inc/trigger/parser.mjs | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index e7c4673..c8c3954 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,16 +9,16 @@ "version": "2.2.0", "license": "MIT", "dependencies": { - "cuffeo": "^1.0.7-3", + "cuffeo": "^1.0.8", "flumm-fetch": "^1.0.1", "flummpress": "^2.0.5", "postgres": "^3.0.1" } }, "node_modules/cuffeo": { - "version": "1.0.7-3", - "resolved": "https://registry.npmjs.org/cuffeo/-/cuffeo-1.0.7-3.tgz", - "integrity": "sha512-Lz8AlLdFWeLLGsf6KBXTHnpseeMbuQH69BamhZr8O9Se9pzuHQgv/ed13n2XWreN0RTyRa49YPtsNVwoQnNrLw==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/cuffeo/-/cuffeo-1.0.8.tgz", + "integrity": "sha512-DqYjsJwOQ+voaQBauEZl6TGOZBwr/jjftpmdDRQRmauOXdbmh5jb+Yzo7cavvIxBp2vX7gLyVtZI5Ap8YiefdA==", "dependencies": { "flumm-fetch-cookies": "^1.4.0" } @@ -56,9 +56,9 @@ }, "dependencies": { "cuffeo": { - "version": "1.0.7-3", - "resolved": "https://registry.npmjs.org/cuffeo/-/cuffeo-1.0.7-3.tgz", - "integrity": "sha512-Lz8AlLdFWeLLGsf6KBXTHnpseeMbuQH69BamhZr8O9Se9pzuHQgv/ed13n2XWreN0RTyRa49YPtsNVwoQnNrLw==", + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/cuffeo/-/cuffeo-1.0.8.tgz", + "integrity": "sha512-DqYjsJwOQ+voaQBauEZl6TGOZBwr/jjftpmdDRQRmauOXdbmh5jb+Yzo7cavvIxBp2vX7gLyVtZI5Ap8YiefdA==", "requires": { "flumm-fetch-cookies": "^1.4.0" } diff --git a/package.json b/package.json index 154b2ed..6cf753b 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "author": "Flummi", "license": "MIT", "dependencies": { - "cuffeo": "^1.0.7-3", + "cuffeo": "^1.0.8", "flumm-fetch": "^1.0.1", "flummpress": "^2.0.5", "postgres": "^3.0.1" diff --git a/src/inc/trigger/parser.mjs b/src/inc/trigger/parser.mjs index 9a91c17..8e6df6c 100644 --- a/src/inc/trigger/parser.mjs +++ b/src/inc/trigger/parser.mjs @@ -29,8 +29,8 @@ export default async bot => { f: e => { const links = e.message.match(regex)?.filter(link => !link.includes("f0ck.me")) || []; - if(e.photo) - links.push(e.photo); + if(e.media) + links.push(e.media); if(links.length === 0) return false;