From 0fce108d210efe55027a3af061bfc57aaaa83843 Mon Sep 17 00:00:00 2001 From: neatchee Date: Thu, 29 Dec 2022 18:47:58 -0800 Subject: [PATCH] Fix bad string coercion; setting :getter returns a string, not an int (#12) --- app/javascript/flavours/glitch/components/status.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/components/status.js b/app/javascript/flavours/glitch/components/status.js index d00a9bf5c6..f1e92d26bd 100644 --- a/app/javascript/flavours/glitch/components/status.js +++ b/app/javascript/flavours/glitch/components/status.js @@ -251,7 +251,7 @@ class Status extends ImmutablePureComponent { // as it could cause surprising changes when receiving notifications if (settings.getIn(['content_warnings', 'shared_state']) && status.get('spoiler_text').length && !status.get('hidden')) return; - let autoCollapseHeight = autoCollapseSettings.get('height'); + let autoCollapseHeight = parseInt(autoCollapseSettings.get('height')); if (status.get('media_attachments').size && !muted) { autoCollapseHeight += 300; }