Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

No title or clickable link for mastodon posts #383

Open
DataBeaver opened this issue Jan 9, 2023 · 1 comment
Open

No title or clickable link for mastodon posts #383

DataBeaver opened this issue Jan 9, 2023 · 1 comment

Comments

@DataBeaver
Copy link

I'm on one Matrix channel where an instance of this bot is posting updates from Mastodon. My home server doesn't have URL previews enabled. As a result the bot's messages show up like this (screenshot from Nheko; Element is very similar):
image
Looking at the raw event, I can see that it has an URL, but the <a> tag in the formatted body does not have any text content:

"content": {
  "body": "Skrolli-lehti:  ( https://some.skrolli.fi/@skrollilehti/109563577778791522 )",
  "format": "org.matrix.custom.html",
  "formatted_body": "<strong>Skrolli-lehti</strong>:<br><a href=\"https://some.skrolli.fi/@skrollilehti/109563577778791522\"><strong></strong></a>",
  "msgtype": "m.notice"
}

To improve usability with different home server configurations, the bot should post a visible link which can be clicked. Ideally it could post part or all of the content from the Mastodon post as well so users would not have to click the link just to see what it's about.

@vranki
Copy link
Contributor

vranki commented Jan 9, 2023

Judging from this mastodon/mastodon#22641

  • Mastodon rss feed doesn't include title tag
  • Title tag is not required in rss spec

I suppose fix would be to include beginning of the feed content as body for the events.

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

No branches or pull requests

2 participants