From dd1f6c796b9eb33fc756bca8757bf461b2dc556d Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Thu, 4 Jul 2024 19:17:09 -0500 Subject: [PATCH] Fix crash --- overcomplicatedStatuses.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/overcomplicatedStatuses.js b/overcomplicatedStatuses.js index bf5d9fd..0c9786d 100644 --- a/overcomplicatedStatuses.js +++ b/overcomplicatedStatuses.js @@ -3,8 +3,6 @@ const path = require("path"), var constants = JSON.parse(fs.readFileSync(path.join(__dirname, 'constants.json'))) -var activityImages = constants.activityImages - function get_img_url(activity, size = "large_image") { if ("assets" in activity) { var image = activity.assets[size] @@ -21,9 +19,7 @@ function get_img_url(activity, size = "large_image") { } if (!image && size == "large_image") { - if (activity.name in activityImages) { - return decodeURIComponent(activityImages[activity.name]) - } + } return null }