]> cat aescling's git repositories - mastodon.git/commitdiff
Merge branch 'master' into glitch-soc/merge-upstream
authorThibaut Girka <thib@sitedethib.com>
Tue, 18 Dec 2018 15:55:15 +0000 (16:55 +0100)
committerThibaut Girka <thib@sitedethib.com>
Tue, 18 Dec 2018 15:55:15 +0000 (16:55 +0100)
Conflicts:
- app/controllers/admin/base_controller.rb
  Some refactoring made upstream, no real conflict.
- app/javascript/mastodon/features/compose/components/compose_form.js
  Updated using upstream's code but using maxChars instead of the
  hardcoded length of 500 characters per toot.
- app/javascript/styles/mastodon/components.scss
  Upstream redesigned the onboarding modal. Not sure why we had a
  conflict there.

19 files changed:
1  2 
Dockerfile
Gemfile
Gemfile.lock
app/controllers/admin/base_controller.rb
app/controllers/directories_controller.rb
app/javascript/mastodon/features/compose/components/compose_form.js
app/javascript/mastodon/locales/en.json
app/javascript/mastodon/locales/pl.json
app/javascript/styles/mastodon/components.scss
app/models/account.rb
app/views/layouts/public.html.haml
config/locales/en.yml
config/locales/gl.yml
config/locales/ja.yml
config/locales/nl.yml
config/locales/oc.yml
config/locales/pl.yml
config/locales/sk.yml
config/routes.rb

diff --cc Dockerfile
Simple merge
diff --cc Gemfile
Simple merge
diff --cc Gemfile.lock
Simple merge
index f2190ddf9b74e980b4e6dd9f4789fb247c227ac9,7b81a2b01d1b4a7b52cb4e32d74c4a9222282446..cc6cd51f0b794da9404c81cf2939c6bf5434941d
@@@ -17,8 -16,8 +17,12 @@@ module Admi
        @body_classes = 'admin'
      end
  
 +    def set_pack
 +      use_pack 'admin'
 +    end
++
+     def set_user
+       @user = Account.find(params[:account_id]).user || raise(ActiveRecord::RecordNotFound)
+     end
    end
  end
index 4b56c7fddb3b5967c6b90d8bf85943db208e9052,ac458fd2592a799d8e17d8481bd7474a49efd4d8..d6add9b0d4f3c9bfddc656b060387bb291acc7c3
@@@ -82,10 -82,10 +83,10 @@@ class ComposeForm extends ImmutablePure
      }
  
      // Submit disabled:
-     const { is_submitting, is_uploading, anyMedia } = this.props;
+     const { is_submitting, is_changing_upload, is_uploading, anyMedia } = this.props;
      const fulltext = [this.props.spoiler_text, countableText(this.props.text)].join('');
  
-     if (is_submitting || is_uploading || length(fulltext) > maxChars || (fulltext.length !== 0 && fulltext.trim().length === 0 && !anyMedia)) {
 -    if (is_submitting || is_uploading || is_changing_upload || length(fulltext) > 500 || (fulltext.length !== 0 && fulltext.trim().length === 0 && !anyMedia)) {
++    if (is_submitting || is_uploading || is_changing_upload || length(fulltext) > maxChars || (fulltext.length !== 0 && fulltext.trim().length === 0 && !anyMedia)) {
        return;
      }
  
      const { intl, onPaste, showSearch, anyMedia } = this.props;
      const disabled = this.props.is_submitting;
      const text     = [this.props.spoiler_text, countableText(this.props.text)].join('');
-     const disabledButton = disabled || this.props.is_uploading || length(text) > maxChars || (text.length !== 0 && text.trim().length === 0 && !anyMedia);
 -    const disabledButton = disabled || this.props.is_uploading || this.props.is_changing_upload || length(text) > 500 || (text.length !== 0 && text.trim().length === 0 && !anyMedia);
++    const disabledButton = disabled || this.props.is_uploading || this.props.is_changing_upload || length(text) > maxChars || (text.length !== 0 && text.trim().length === 0 && !anyMedia);
      let publishText = '';
  
      if (this.props.privacy === 'private' || this.props.privacy === 'direct') {
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge