From d3c65a37b148e7e5c0317a3d9ecd77842416fd52 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Sat, 11 Jul 2026 03:44:28 +0530 Subject: [PATCH] refactor(instagram): drop unused slug field and mark share links unsupported --- .../app/proprietary/platforms/instagram/url_resolver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/surfsense_backend/app/proprietary/platforms/instagram/url_resolver.py b/surfsense_backend/app/proprietary/platforms/instagram/url_resolver.py index aec46a678..08f5c6553 100644 --- a/surfsense_backend/app/proprietary/platforms/instagram/url_resolver.py +++ b/surfsense_backend/app/proprietary/platforms/instagram/url_resolver.py @@ -13,7 +13,8 @@ Normalization rules (from the reference spec): - Numeric post-ID URLs cannot be single-post-extracted anonymously (the HTML page keys on the shortCode), so they resolve with ``numeric_post_id`` set and the media flow skips them. -- ``share/`` redirect resolution is handled at fetch time (network), not here. +- ``share/`` links are unsupported (they need a network redirect to resolve to a + canonical post/profile URL); pass the resolved ``/p/`` or profile URL instead. """ from __future__ import annotations @@ -40,7 +41,6 @@ class ResolvedUrl: kind: ResolvedKind value: str url: str - slug: str | None = None numeric_post_id: bool = False