fixed #797: For Imgur gif uploads use gifv url

This commit is contained in:
Jaex 2015-07-19 21:48:07 +03:00
parent 2c2e776b81
commit b7c4005ea9

View file

@ -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
{ {