This plugin for Discourse, extends Onebox to add support for embedding media from go7.ir (a Telegram file storage service) in Discourse posts.
See it in action and test it out for yourself on freepaper community.
Add the plugin's repository URL to your container's app.yml
file, for example:
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- mkdir -p plugins
- git clone https://github.com/mhosseinab/discourse-go7-onebox
Rebuild the container:
cd /var/discourse
./launcher rebuild app
cd /var/discourse
./launcher enter app
rake plugin:install repo=https://github.com/mhosseinab/discourse-go7-onebox
rm -rf tmp/cache/*
sv restart unicorn
For the plugin to apply retroactively, you'll need to rebake old posts:
cd /var/discourse
./launcher enter app
rake posts:rebake
The Discourse Go7 Onebox plugin is released under the MIT License.