Fix trend links not respecting set instance

This commit is contained in:
Lim Chee Aun 2024-02-28 11:27:48 +08:00
parent 6f3f83a620
commit f8b5e9563c

View file

@ -67,7 +67,7 @@ function Trending({ columnMode, ...props }) {
// Get links
try {
const { value } = await fetchLinks(masto);
const { value } = await fetchLinks(masto, instance);
// 4 types available: link, photo, video, rich
// Only want links for now
const links = value?.filter?.((link) => link.type === 'link');