api/instagram: add support for share urls

closes #998
This commit is contained in:
jj
2025-02-08 17:24:02 +00:00
parent 1be13a30bf
commit cca61275f1
3 changed files with 33 additions and 7 deletions

View File

@@ -6,7 +6,8 @@ export const testers = {
"dailymotion": pattern => pattern.id?.length <= 32,
"instagram": pattern =>
pattern.postId?.length <= 12
pattern.postId?.length <= 48
|| pattern.shareId?.length <= 16
|| (pattern.username?.length <= 30 && pattern.storyId?.length <= 24),
"loom": pattern =>