mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-28 11:00:26 -05:00
Fix bad string coercion; setting :getter returns a string, not an int (#12)
This commit is contained in:
parent
ef665c1df5
commit
0fce108d21
@ -251,7 +251,7 @@ class Status extends ImmutablePureComponent {
|
|||||||
// as it could cause surprising changes when receiving notifications
|
// 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;
|
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) {
|
if (status.get('media_attachments').size && !muted) {
|
||||||
autoCollapseHeight += 300;
|
autoCollapseHeight += 300;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user