Fedor Indutnyy
2022-03-17 09:36:51 -07:00
13 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ export async function autoOrientJPEG(
// All images go through handleImageAttachment before being sent and thus have
// already been scaled to level, oriented, stripped of exif data, and saved
// in high quality format. If we want to send the image in HQ we can return
// the attachement as-is. Otherwise we'll have to further scale it down.
// the attachment as-is. Otherwise we'll have to further scale it down.
if (!attachment.data || sendHQImages) {
return attachment;
}
+1 -1
View File
@@ -161,7 +161,7 @@ export function isLinkSneaky(href: string): boolean {
return true;
}
// This is necesary because getDomain returns domains in punycode form.
// This is necessary because getDomain returns domains in punycode form.
const unicodeDomain = nodeUrl.domainToUnicode
? nodeUrl.domainToUnicode(url.hostname)
: url.hostname;