mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-15 03:15:32 +00: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 { length } from 'stringz';
|
||||||
import { countableText } from '../util/counter';
|
import { countableText } from '../util/counter';
|
||||||
import initialState from '../../../initial_state';
|
import initialState from '../../../initial_state';
|
||||||
|
|
||||||
const maxChars = initialState.max_chars;
|
const maxChars = initialState.max_chars;
|
||||||
|
|
||||||
const messages = defineMessages({
|
const messages = defineMessages({
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class StatusLengthValidator < ActiveModel::Validator
|
class StatusLengthValidator < ActiveModel::Validator
|
||||||
MAX_CHARS = (ENV["MAX_CHARS"] || 500).to_i
|
MAX_CHARS = (ENV['MAX_CHARS'] || 500).to_i
|
||||||
|
|
||||||
def validate(status)
|
def validate(status)
|
||||||
return unless status.local? && !status.reblog?
|
return unless status.local? && !status.reblog?
|
||||||
|
|
Loading…
Reference in a new issue