matrix-org / matrix-hookshot

A bridge between Matrix and multiple project management services, such as GitHub, GitLab and JIRA.
https://matrix-org.github.io/matrix-hookshot/
Apache License 2.0
291 stars 68 forks source link

Hookshot Configuration: Auto fill RSS label if left empty on creation #354

Open Twi1ightSparkle opened 2 years ago

Twi1ightSparkle commented 2 years ago

When you subscribe to an RSS or Atom feed, if you leave the label field empty the bot should automatically pull the title from the RSS feed and save that as the label in the state event.

Otherwise, you'll just end up with a lot of undescriptive URLs if you have a room with a lot of feeds making it impossible to manage.

Screen Shot 2022-05-12 at 3 43 16 PM Screen Shot 2022-05-12 at 3 43 42 PM

HarHarLinks commented 2 years ago

Alternatively, upon entering the URL, fetch the label and preview it in the Label input field, where it can then be edited before hitting Subscribe.

I have a subscription with a state event like this:

  "content": {
    "url": "https://matrix.org/blog/feed"
  }

It shows like this image So obviously some title fetching (<title><![CDATA[matrix.org]]></title>) is happening nevertheless, unless this is some kind of coincidence.