mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Code style fixes.
This commit is contained in:
parent
d11b1a1aa7
commit
dae8916544
@ -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 New Issue
Block a user