mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-29 09:39:04 +01:00
Code style fixes.
This commit is contained in:
parent
d11b1a1aa7
commit
dae8916544
2 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@ import ImmutablePureComponent from 'react-immutable-pure-component';
|
|||
import { length } from 'stringz';
|
||||
import { countableText } from '../util/counter';
|
||||
import initialState from '../../../initial_state';
|
||||
|
||||
const maxChars = initialState.max_chars;
|
||||
|
||||
const messages = defineMessages({
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class StatusLengthValidator < ActiveModel::Validator
|
||||
MAX_CHARS = (ENV["MAX_CHARS"] || 500).to_i
|
||||
MAX_CHARS = (ENV['MAX_CHARS'] || 500).to_i
|
||||
|
||||
def validate(status)
|
||||
return unless status.local? && !status.reblog?
|
||||
|
|
Loading…
Reference in a new issue