added discord bot

Changelog
This commit is contained in:
Sergio Brighenti 2018-11-11 20:33:19 +01:00
parent 4ee5c41f37
commit ba6ed78bd9
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
## v2.0 [WIP]
+ Migrated from Flight to Slim 3 framework.
+ Added install wizard (using the CLI is no longer required).
+ Allow discord bot to display the preview.
+ Improvements under the hood.
## v1.3
+ Added command to switch between bootswatch.com themes.
+ Added popever to write the telegram message when sharing.

View file

@ -93,6 +93,7 @@ class UploadController extends Controller
if (stristr($request->getHeaderLine('User-Agent'), 'TelegramBot') ||
stristr($request->getHeaderLine('User-Agent'), 'facebookexternalhit/') ||
stristr($request->getHeaderLine('User-Agent'), 'Discordbot/') ||
stristr($request->getHeaderLine('User-Agent'), 'Facebot')) {
return $this->streamMedia($request, $response, $filesystem, $media);
} else {