Matrix bot notifications have just a single link #10009

Open
opened 2025-11-02 08:55:38 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @aschrijver on GitHub (Dec 23, 2022).

Feature Description

When the Matrix chatroom bot is enabled, it generates 4 link previews (on chatrooms where previews aren't disabled by the moderator), making notifications too lenghty and bot use impractical.

Three of thse links are irrelevant. When clicking the link to an Issue or PR to which the notification relates, all necessary information can be found there.

Downstream: Codeberg/Community/#728 and forgejo/forgejo/#162

Screenshots

Example notification which shows how much space is used up by link previews

Originally created by @aschrijver on GitHub (Dec 23, 2022). ### Feature Description When the Matrix chatroom bot is enabled, it generates 4 link previews (on chatrooms where previews aren't disabled by the moderator), making notifications too lenghty and bot use impractical. Three of thse links are irrelevant. When clicking the link to an Issue or PR to which the notification relates, all necessary information can be found there. Downstream: [Codeberg/Community/#728](https://codeberg.org/Codeberg/Community/issues/728) and [forgejo/forgejo/#162](https://codeberg.org/forgejo/forgejo/issues/162) ### Screenshots ![Example notification which shows how much space is used up by link previews](https://codeberg.org/attachments/3efec16c-6f89-4b2f-8aba-5bc9de7101b9)
GiteaMirror added the type/proposaltype/feature labels 2025-11-02 08:55:39 -06:00
Author
Owner

@jolheiser commented on GitHub (Dec 23, 2022):

Does matrix have a way to suppress embeds being sent?
For example, Discord allows you to surround a link with <> to suppress the preview.

@jolheiser commented on GitHub (Dec 23, 2022): Does matrix have a way to suppress embeds being sent? For example, Discord allows you to surround a link with `<>` to suppress the preview.
Author
Owner

@caesar commented on GitHub (Dec 23, 2022):

Does matrix have a way to suppress embeds being sent? For example, Discord allows you to surround a link with <> to suppress the preview.

Not so far as I'm aware. On Matrix they're not embeds; I think it's the client that requestsa link preview from the homeserver (both must have the feature enabled).

Unless I'm mistaken, I believe the only solution to this problem would be to avoid creating the extra links in the first place, and send messages with just a single link.

@caesar commented on GitHub (Dec 23, 2022): > Does matrix have a way to suppress embeds being sent? For example, Discord allows you to surround a link with `<>` to suppress the preview. Not so far as I'm aware. On Matrix they're not embeds; I think it's the client that requestsa link preview from the homeserver (both must have the feature enabled). Unless I'm mistaken, I believe the only solution to this problem would be to avoid creating the extra links in the first place, and send messages with just a single link.
Author
Owner

@caesar commented on GitHub (Dec 23, 2022):

I should add that in my opinion displaying many link previews is a bug (or at least, undesirable feature) in Element (and perhaps other clients?). However, I would not be opposed to working around it by ensuring we send only a single link in the Matrix messages.

@caesar commented on GitHub (Dec 23, 2022): I should add that in my opinion displaying many link previews is a bug (or at least, undesirable feature) in Element (and perhaps other clients?). However, I would not be opposed to working around it by ensuring we send only a single link in the Matrix messages.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10009