1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-01 15:38:31 +00:00

Fix Featured Follow (#650)

Apparently Twitch now returns `null` for the `follower` variable inside the user object when the user isn't being followed
This commit is contained in:
Lordmau5 2019-09-07 19:57:48 +02:00 committed by Mike
parent b1d1f98476
commit 9894e9a7cb

View file

@ -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
};
}