Hi,
can you add mattermost to the list of user-agents which trigger prerendering?
Mattermost is a self-hosted slack alternative and it would be great to have prerendering of our website in it.
Its user-agent is: ‘Mattermost-Bot/1.1’
I guess checking if “Mattermost-Bot” is available in the user-agent would be enough. AFAICT the version number hasn’t changed since it was released:
mattermost:master
← elyscape:MM-31899
opened 10:05PM - 18 Mar 21 UTC
#### Summary
Many websites block requests made with Go's default user-agent. We… had previous special-cased Twitter links to use a nonstandard user-agent. This makes that behavior apply everywhere and also customizes the user-agent to belong specifically to Mattermost.
**Note**: Ideally, we should also include a link to a Mattermost-hosted webpage describing the bot and its behavior (e.g. use a user-agent string like `Mattermost-Bot/1.1 (+https://about.mattermost.com/default-bot-policy/)`). See for example the pages used (and linked) by [Facebook][facebook] and [Slack][slack]. If you provide me with a URL that I should include, I'll add it to the PR. I'm also open to alternative suggestions for the user-agent.
#### Ticket Link
Fixes https://github.com/mattermost/mattermost-server/issues/16665
https://mattermost.atlassian.net/browse/MM-31899
#### Release Note
```release-note
* Fixed link previews on a number of websites, including Reddit
```
[facebook]: http://www.facebook.com/externalhit_uatext.php
[slack]: https://api.slack.com/robots
Thanks a lot!
Hi @randomname ,
I’ve create a PR for the devs to verify and approve. We’ll let you know if they pass any feedback or if the request is merged/rejected.
1 Like
fool
June 20, 2023, 6:28pm
4
Seems like this is live now. Please let us know if you have trouble getting your content prerendered for requests from that User-Agent