mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
fixed #797: For Imgur gif uploads use gifv url
This commit is contained in:
parent
2c2e776b81
commit
b7c4005ea9
1 changed files with 8 additions and 1 deletions
|
@ -215,7 +215,14 @@ public override UploadResult Upload(Stream stream, string fileName)
|
||||||
{
|
{
|
||||||
if (DirectLink)
|
if (DirectLink)
|
||||||
{
|
{
|
||||||
result.URL = imageData.link;
|
if (!string.IsNullOrEmpty(imageData.gifv))
|
||||||
|
{
|
||||||
|
result.URL = imageData.gifv;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result.URL = imageData.link;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue