• Stefy Spora's avatar
    Update story-data parsing to use rawCaption field and handle tag objects · da3bc000
    Stefy Spora authored
    - Update getCurrentMediaData function in content.js to use rawCaption instead of caption
    - Update tag parsing to handle tag objects with id, name, slug, path, approved properties
    - Extract tag names and IDs from tag objects properly
    - Update background.js with same parsing logic for consistency
    - Handle both picture and video tag objects correctly
    - Add fallback logic for different tag formats
    - Maintain backward compatibility with existing tag formats
    - Update all extraction points: pictures, videos, direct attributes, and root level data
    - Test parsing logic with new tag object structure
    da3bc000
content.js 22.2 KB