ImageGrid does not parse reposts correctly #722
Labels
No Label
1000k
100k
10k
200k
20k
500k
50k
5k
75k
backend
blocked:design
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
P1
P2
P3
question
scope:intl
scope:nip
scope:query_tracing
scope:ux
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Kieran/snort#722
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
On my photopraphy profile I noticed an image which is not rendered in the image grid view.
To Reproduce
Steps to reproduce the behavior:
Visit
https://snort.social/nprofile1qqsyekqsn88ela0phvx6uw2eujmmuganm72j42xhv6mrmky9k0m4t0spr9mhxue69uhkummnw3ez6am0wfkxgtngxdazu6ns9uq3uamnwvaz7tmwdaehgu3wddhku6twvukkget8wfskze3wdekz7qgnwaehxw309ac82unsd3jhqct89ejhxtch7y69j
Click on the image grid view
Scroll down to the first image row
The third image is not rendered.
Expected behavior
All images are rendered.
Screenshots
Desktop (please complete the following information):
Additional context
I analyzed the bug and it has to do with this being a REPOST. The content is a serialized JSON string of the original event and is not correctly parsed. The regex parsing the media is then not recognizing double-escaped line breaks \n.
This can be fixed similar to this (quick hack):
ImageGrid does not parse reposts correctlyto ImageGrid does not parse reposts correctly