]> Untitled Git - lemmy-ui.git/blob - src/server/utils/fetch-icon-png.ts
Merge remote-tracking branch 'origin/main' into feat/add-post-body-preview-to-desktop
[lemmy-ui.git] / src / server / utils / fetch-icon-png.ts
1 import fetch from "cross-fetch";
2
3 export async function fetchIconPng(iconUrl: string) {
4   return await fetch(iconUrl)
5     .then(res => res.blob())
6     .then(blob => blob.arrayBuffer());
7 }