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

OpenGraph metadata does not get fetched when using markdown links #26951

Open
PerplexedTheta opened this issue May 3, 2024 · 2 comments
Open
Labels
Bug Report/Open Bug report/issue

Comments

@PerplexedTheta
Copy link

PerplexedTheta commented May 3, 2024

Summary

OpenGraph metadata does not get fetched when using markdown links

Steps to reproduce

  1. Enable website link previews preference must be set to true
  2. Send the following link to a channel / DM, without using Markdown:
    • https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26258
  3. Observe how OpenGraph data creates a link preview
  4. Send the following Markdown to a channel / DM:
    • [link](https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26258)
  5. Observe how no OpenGraph data is displayed as a link preview

Expected behavior

When the Enable website link previews preference is set to true, you would expect any linked content to generate a preview, if OpenGraph data is found to be available.

Observed behavior (that appears unintentional)

Despite having the Enable website link previews preference set to true, a link preview is not generated, if it is inserted using Markdown, as opposed to pasting links in directly as text, which does work.

Possible fixes

This is my first issue post on Mattermost!

We have been using the autolinks plugin to work around this, but have found that causes other issues (e.g. duplicating links in certain circumstances). As new & happy users of Mattermost, we are willing to learn how the project hangs together, and hopefully one day contribute back to it.

Thank you :-)

@amyblais
Copy link
Member

amyblais commented May 7, 2024

@amyblais amyblais added the Bug Report/Open Bug report/issue label May 7, 2024
@mrenvoize
Copy link

Thanks for adding this to Jira Amy. It's certainly something that would benefit our community on Mattermost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report/Open Bug report/issue
Projects
None yet
Development

No branches or pull requests

3 participants