Fix favicon in DittoPipeline

This commit is contained in:
Alex Gleason 2025-02-17 15:16:05 -06:00
parent f837083146
commit d3730284de
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -16,7 +16,7 @@ import { type EventsDB } from '@/storages/EventsDB.ts';
import { hydrateEvents } from '@/storages/hydrate.ts';
import { eventAge, Time } from '@/utils.ts';
import { getAmount } from '@/utils/bolt11.ts';
import { faviconCache } from '@/utils/favicon.ts';
import { resolveFavicon } from '@/utils/favicon.ts';
import { errorJson } from '@/utils/log.ts';
import { resolveNip05 } from '@/utils/nip05.ts';
import { parseNoteContent, stripimeta } from '@/utils/note.ts';
@ -243,7 +243,7 @@ export class DittoPipeline {
const domain = nip05?.split('@')[1].toLowerCase();
if (domain) {
try {
await faviconCache.fetch(domain, { signal });
await resolveFavicon({ ...this.opts, signal }, domain);
} catch {
// Fallthrough.
}