mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 00:38:27 +00:00
Restore glitch-soc's support of custom poll limits
This commit is contained in:
@@ -55,7 +55,7 @@ import {
|
||||
import { REDRAFT } from '../actions/statuses';
|
||||
import { STORE_HYDRATE } from '../actions/store';
|
||||
import { TIMELINE_DELETE } from '../actions/timelines';
|
||||
import { me, defaultContentType } from '../initial_state';
|
||||
import { me, defaultContentType, pollLimits } from '../initial_state';
|
||||
import { recoverHashtags } from '../utils/hashtag';
|
||||
import { unescapeHTML } from '../utils/html';
|
||||
import { overwrite } from '../utils/js_helpers';
|
||||
@@ -369,7 +369,7 @@ const updatePoll = (state, index, value) => state.updateIn(['poll', 'options'],
|
||||
|
||||
if (tmp.size === 0) {
|
||||
return tmp.push('').push('');
|
||||
} else if (tmp.size < 4) {
|
||||
} else if (tmp.size < pollLimits.max_options) {
|
||||
return tmp.push('');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user