Code style fixes.

master
Lain Iwakura 7 years ago
parent d11b1a1aa7
commit dae8916544
  1. 1
      app/javascript/mastodon/features/compose/components/compose_form.js
  2. 2
      app/validators/status_length_validator.rb

@ -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