Don't try generating link previews for debuglogs.org

This commit is contained in:
Evan Hahn
2022-03-08 14:04:44 -06:00
committed by GitHub
parent 4e48d7792b
commit efee887135
4 changed files with 30 additions and 21 deletions

View File

@@ -2212,7 +2212,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
(item: typeof window.WhatIsThis) =>
(item.image || item.title) &&
urls.includes(item.url) &&
LinkPreview.isLinkSafeToPreview(item.url)
LinkPreview.shouldPreviewHref(item.url)
);
if (preview.length < incomingPreview.length) {
log.info(