Fix error when r is undefined

pull/393/head 2024.01.11.e791ea8
Lim Chee Aun 2024-01-11 10:44:37 +08:00
rodzic 4b9ff0ca5b
commit 500f877d4b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -219,7 +219,7 @@ export async function assignFollowedTags(items, instance) {
statusWithFollowedTags.forEach((s) => {
const { item, sKey, followedTags } = s;
const r = relationships[item.account.id];
if (!r.following) {
if (r && !r.following) {
statusFollowedTags[sKey] = followedTags;
}
});