]> cat aescling's git repositories - mastodon.git/commit
When pulling out max_toot_chars, handle nulls
authorDavid Yip <yipdw@member.fsf.org>
Mon, 8 Jan 2018 15:43:57 +0000 (09:43 -0600)
committerDavid Yip <yipdw@member.fsf.org>
Mon, 8 Jan 2018 15:45:59 +0000 (09:45 -0600)
commit2dc4fbbd1a13adbdca26a0b42ee6e289e736bba1
treebf4ce6d99cf4c856e2cc0224044cc9aef12c2e0e
parent722b3f567f18ae31b05f320441c73279b4f5ad11
When pulling out max_toot_chars, handle nulls

flavours/glitch/util/initial_state is used in places where we want to
exhibit different behavior based on user preferences.  This means that
it's used in places where no preference is defined, i.e. on an
unauthenticated access.  All values exported from that module must
therefore expect that case; previously, the max chars value didn't.

Addresses #306.
app/javascript/flavours/glitch/util/initial_state.js