Fix bad string coercion; setting :getter returns a string, not an int (#12)

pull/2061/head
neatchee 2022-12-29 18:47:58 -08:00
parent ef665c1df5
commit 0fce108d21
1 changed files with 1 additions and 1 deletions

View File

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