Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spoilered URLs sent from Telegram include <span data-mx-spoiler> in href on Matrix #971

Open
rom4nik opened this issue Aug 24, 2024 · 0 comments

Comments

@rom4nik
Copy link

rom4nik commented Aug 24, 2024

Bridge @ 0068341. Issue as in title:

image

Event content on Matrix:

"content": {
    "body": "some text before the spoiler: https://matrix.org",
    "external_url": "https://t.me/c/4597680902/6021",
    "fi.mau.telegram.source": {
      "chat_id": 4597680902,
      "id": 6021,
      "peer_type": "chat",
      "space": 1714758850
    },
    "format": "org.matrix.custom.html",
    "formatted_body": "some text before the spoiler: <a href='http://<span data-mx-spoiler>https://matrix.org</span>'><span data-mx-spoiler>https://matrix.org</span></a>",
    "msgtype": "m.text"
  },

Depending on client, this URL might not be rendered at all (Element Desktop):

image

Or appear as a normal URL, but navigating to the incorrect URL taken from formatted_body (Element X Android):

Screenshot_20240824-190632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant