Self-hosting Fluxer: findings, bugs, and patches from a real deployment

(#1037) Feature Shipped self-hosting

Thread

Comment by @Mar0xy
RexSystem 1 vote originally by @Mar0xy on GitHub

Broken Klipy Categories/Gif Picker

There is currently an issue where in the packages/api/src/klipy/KlipyService.tsx file it tries to just grab the gif as a webm but this can fail when the webm array is missing or if the webm array is missing the url/dims values causing the gif picker for example to not show the categories. This can be fixed by adding a fallback to make it use the gif array instead if either of the two things mentioned above are missing on lines 332-335 here is a the return snippet fully for easy implementation
return {
	id: normalizedSlug,
	title: input.title,
	url: normalizedUrl,
	src: input.media_formats.webm?.url ?? input.media_formats.gif.url,
	proxy_src: this.mediaService.getExternalMediaProxyURL(input.media_formats.webm?.url ?? input.media_formats.gif.url),
	width: input.media_formats.webm?.dims?.[0] ?? input.media_formats.gif.dims[0],
	height: input.media_formats.webm?.dims?.[1] ?? input.media_formats.gif.dims[1],
};