From 9894e9a7cb729b6021c5473b7c1de97f938d5d60 Mon Sep 17 00:00:00 2001 From: Lordmau5 Date: Sat, 7 Sep 2019 19:57:48 +0200 Subject: [PATCH] Fix Featured Follow (#650) Apparently Twitch now returns `null` for the `follower` variable inside the user object when the user isn't being followed --- src/sites/twitch-twilight/modules/featured_follow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sites/twitch-twilight/modules/featured_follow.js b/src/sites/twitch-twilight/modules/featured_follow.js index 68576848..911ec8d9 100644 --- a/src/sites/twitch-twilight/modules/featured_follow.js +++ b/src/sites/twitch-twilight/modules/featured_follow.js @@ -119,8 +119,8 @@ export default class FeaturedFollow extends Module { login: user.login, displayName: user.displayName, avatar: user.profileImageURL, - following: user.self.follower.followedAt != null, - disableNotifications: user.self.follower.disableNotifications + following: user.self.follower?.followedAt != null, + disableNotifications: user.self.follower?.disableNotifications }; }