Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
core
core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 251
    • Issues 251
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • hubzilla
  • corecore
  • Issues
  • #1554

Closed
Open
Created Apr 05, 2021 by Adnan Shameem@adnan360

Activitypub post with an URL in alt image text shows HTML on body

I recently shared a post on Mastodon and I'm following that account on Hubzilla. The post had an image with some text for accessibility. The post appeared on Hubzilla timeline with some weird partial HTML code (screenshot below). Looking at the html (also below) it seems the issue is caused due to the URL I put into the alt text.

Steps to reproduce:

  • Activate Activitypub plugin
  • Follow a Mastodon account
  • Post an image with text caption with an URL in it (upload image, click Edit, enter text, apply) on Mastodon account
  • When the Hubzilla timeline is loaded, the Mastodon post should show up

Current behavior:

Shows the post with weird part of HTML tag, such as:

https://adnan360.codeberg.page and the page says "Hello from Drone...!"" title="Browser opened to https://adnan360.codeberg.page and the page says "Hello from Drone...!"" loading="eager" />

Looking at the page source on browser devtool, div with wall-item-body class has something like this on html:

<img style="max-width: 100%;" src="https://media.mas.to/masto-public/media_attachments/files/106/011/174/207/546/241/original/f732d34189ed5f31.png" alt="Browser opened to <a  href=" https:="" adnan360.codeberg.page"="" target="_blank" rel="nofollow noopener">https://adnan360.codeberg.page and the page says "Hello from Drone...!"" title="Browser opened to <a href="https://adnan360.codeberg.page" target="_blank" rel="nofollow noopener">https://adnan360.codeberg.page</a> and the page says "Hello from Drone...!"" loading="eager" /&gt;<br><br>Finally! I got <a href="https://mas.to/tags/Drone" ...

alt tag was broken on the URL that was in accessibility text: ...alt="Browser opened to <a ...

Expected behavior:

Show the post without these code and show the alt text on the image.

Screenshot:

temp-01

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None