fix bug
This commit is contained in:
parent
ffa9e77c81
commit
cc784cdd38
@ -49,9 +49,6 @@ namespace Inotify.Controllers
|
|||||||
sendTemplate.IsActive = sendAuthInfo.Active;
|
sendTemplate.IsActive = sendAuthInfo.Active;
|
||||||
sendTemplate.AuthToTemplate(sendAuthInfo.AuthData);
|
sendTemplate.AuthToTemplate(sendAuthInfo.AuthData);
|
||||||
userSendTemplates.Add(sendTemplate);
|
userSendTemplates.Add(sendTemplate);
|
||||||
}
|
|
||||||
if (barkTemplateAttribute.Key == sendTemplate.Type)
|
|
||||||
{
|
|
||||||
sendTemplate.Values.FirstOrDefault(e => e.Name == nameof(BarkSendTemplate.Auth.SendUrl)).Value = "";
|
sendTemplate.Values.FirstOrDefault(e => e.Name == nameof(BarkSendTemplate.Auth.SendUrl)).Value = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -237,8 +237,11 @@ namespace Inotify.Sends
|
|||||||
{
|
{
|
||||||
if (IsUrl(url) && IsImage(url))
|
if (IsUrl(url) && IsImage(url))
|
||||||
{
|
{
|
||||||
WebClient mywebclient = new WebClient();
|
using (WebClient mywebclient = new WebClient())
|
||||||
return mywebclient.DownloadData(url);
|
{
|
||||||
|
return mywebclient.DownloadData(url);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user