Code style fixes.

th-downstream
Lain Iwakura 7 years ago
parent 3de2814a5a
commit f517cbae22

@ -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…
Cancel
Save