https://github.com/mattermost-community/mattermost-plugin-oembed
https://github.com/mattermost-community/mattermost-plugin-oembed
hacktoberfest mattermost mattermost-plugin
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattermost-community/mattermost-plugin-oembed
- Owner: mattermost-community
- License: apache-2.0
- Created: 2019-07-28T19:08:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T11:29:31.000Z (over 1 year ago)
- Last Synced: 2025-04-14T12:14:33.532Z (6 months ago)
- Topics: hacktoberfest, mattermost, mattermost-plugin
- Language: JavaScript
- Homepage:
- Size: 356 KB
- Stars: 9
- Watchers: 31
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# oEmbed plugin
This plugin renders oEmbed previews for the links that support them.

## Update provider dimensions file
The plugin needs to know the expected dimensions of the embed
representation for every provider in advance. To fetch them, there is
a script in the `generator` folder that runs an example query per
provider and saves the dimensions for the provider from the response.To run the script, first go to the `generator` folder and install the
node dependencies:```sh
cd generator
npm install
```and with the dependencies installed, run:
```sh
npm run generate
```the script will write a `provider-dimensions.json` file that you can
use to replace the `webapp/src/provider-dimensions.json` file before
building the plugin.