LemmyNet / jerboa

A native android app for Lemmy
GNU Affero General Public License v3.0
1.14k stars 167 forks source link

Photos displayed multiple times in a post. #1525

Open creativeghostfish opened 1 month ago

creativeghostfish commented 1 month ago

Jerboa Version

0.0.66

Android Version + Phone

Android 14, Pixel 8

Describe The Bug

A single photo should be displayed, but multiple copies are displayed instead.

Screenshot_20240524-120001 Screenshot_20240524-115956 Screenshot_20240524-115950

To Reproduce

  1. Open Jerboa.
  2. Create a post with a photo.
  3. Add alt text to the photo.
  4. Save post.
  5. View post in app and see multiple copies of the photo displayed.
  6. View the same post in a browser and see the correct post with only one copy of the photo displayed.

In the case of a crash or when relevant include the logs

No response

creativeghostfish commented 1 month ago

Here is a link to the post: https://lemmy.world/post/15763261

MV-GH commented 1 month ago

Rest call GET https://lemmy.world/api/v3/post?id=15763261

Interesting the body contains the alt text It only contains the link once so thats not it. I'll debug it later too see why its creating multiple images

![Political flier with a photo of Trump on the right side and various warning symbols throughout the text. There is a watermark on the flier that appears to be an eagle similar to other US symbols containing eagles. The text reads: VOTER ALERT. We see you haven't voted yet. Your voting record is public... Your neighbors are watching you and will know if you miss this ***critical runoff election.*** We will notify President Trump if you don't vote. You can't afford to have that on your record. **Our Republican values are at stake in this election.** 1) Border Security, 2) Property Taxes, and 3) Parental Empowerment. VOTE EARLY before the deadline this Friday, May 24th at 7:00pm or VOTE ON ELECTION DAY Tuesday, May 28th. NOTICE: We will contact you after the election to make sure you voted!](https://lemmy.world/pictrs/image/35db0446-1fbd-40f3-9809-6eb1cc3e2aa3.jpeg)\n\nNote: some slight edits have been made in the image description to aid in readability by screen readers. Specifically, the values listed have been enumerated for clarity and the specific symbols used as warning symbols have not been explicitly described. Additionally, some of the text formatting has not been carried over in this description. For example, the title (VOTER ALERT) is in large white text over a red banner at the top of the flier. It is my hope that leaving these particular descriptions out will aid in understanding the flier itself; however, should anyone prefer a description of these formatting choices I will be glad to attempt it.

How many times does it display?

creativeghostfish commented 1 month ago

It is displaying 5 times on my end

MV-GH commented 1 month ago

It's because of the *** if you remove those markdown markup from the alt text then only one image is displayed. I'll look further into this