Added gif support

pull/15/head releases/0.2.1
tycrek 4 years ago
parent 366ef18dd6
commit 5d01036835
No known key found for this signature in database
GPG Key ID: 25D74F3943625263

@ -13,7 +13,7 @@
## Features
- ✔️ Token authorization via HTTP `Authorization` header
- ✔️ Upload images, videos, files
- ✔️ Upload images, videos, gifs, files
- ✔️ Fancy embeds on Discord
- ✔️ Seamless inline video embeds on Discord
- ✔️ File deletion

@ -45,7 +45,7 @@ class OpenGraph {
ogtype: this.type.includes('video') ? 'video.other' : 'image',
type: this.type.includes('video') ? 'video' : 'image',
ext: this.type.includes('video') ? '.mp4' : '',
ext: this.type.includes('video') ? '.mp4' : this.type.includes('gif') ? '.gif' : '',
title: (this.title.length != 0) ? `<meta property="og:title" content="${this.title}">` : '',
description: (this.description.length != 0) ? `<meta property="og:description" content="${this.description}">` : '',

Loading…
Cancel
Save