Skip to content

Commit 8b221d5

Browse files
committed
revert: back to 07f0ea2 and e963a39 (ignore revoke message)
1 parent e963a39 commit 8b221d5

2 files changed

Lines changed: 2 additions & 11 deletions

File tree

src/components/events/revoke.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,10 @@ import { addMessage, getMessage } from "../services/message";
33
import log from "../utils/log";
44
import { getSetting } from "../services/settings";
55
import path from "path";
6-
import client from "../client";
76

87
export default async function (msg: Message, revoked_msg?: Message) {
98
try {
10-
const myJid = (await client()).info.wid._serialized;
11-
if (
12-
msg.fromMe ||
13-
!revoked_msg ||
14-
revoked_msg.fromMe ||
15-
revoked_msg?.author === myJid ||
16-
revoked_msg?.id?.id === myJid
17-
)
18-
return;
9+
if (msg.fromMe || !revoked_msg || revoked_msg.fromMe) return;
1910

2011
const lid = (msg.author ?? msg.from).split("@")[0];
2112

src/components/utils/instantdl/downloader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function md5FromUrl(url: string) {
1616
}
1717

1818
const facebookUrlRegex =
19-
/^(https?:\/\/)?(www\.)?(facebook\.com\/(watch\/\?v=\d+|[^\/]+\/videos\/\d+|reel\/\d+)|fb\.watch\/[A-Za-z0-9_-]+)\/?$/i;
19+
/^(https?:\/\/)?(www\.)?(facebook\.com|fb\.watch)\/[^\s?#]+(\?[^\s#]*)?(#[^\s]*)?$/i;
2020
const youtubeShortsUrlRegex =
2121
/^(https?:\/\/)?(www\.)?youtube\.com\/shorts\/([A-Za-z0-9_-]{11})(\?[^\s#]*)?(#[^\s]*)?$/i;
2222

0 commit comments

Comments
 (0)