mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 23:37:54 +00:00
Use a proper user agent when fetching images
This commit is contained in:
parent
55c56c4e58
commit
41427db178
10 changed files with 106 additions and 87 deletions
|
|
@ -62,7 +62,7 @@ namespace PluralKit.Bot
|
|||
if (avatarArg != null)
|
||||
{
|
||||
try {
|
||||
await AvatarUtils.VerifyAvatarOrThrow(avatarArg.Url);
|
||||
await AvatarUtils.VerifyAvatarOrThrow(_client, avatarArg.Url);
|
||||
await _db.Execute(conn => _repo.UpdateMember(conn, member.Id, new MemberPatch { AvatarUrl = avatarArg.Url }));
|
||||
} catch (Exception e) {
|
||||
imageMatchError = e;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue