]> cat aescling's git repositories - mastodon.git/commitdiff
Merge branch 'main' into glitch-soc/merge-upstream
authorClaire <claire.github-309c@sitedethib.com>
Fri, 7 May 2021 16:21:59 +0000 (18:21 +0200)
committerClaire <claire.github-309c@sitedethib.com>
Fri, 7 May 2021 16:21:59 +0000 (18:21 +0200)
- `app/views/statuses/_simple_status.html.haml`:
  Small markup change in glitch-soc, on a line that has been modified by
  upstream. Ported upstream changes.

34 files changed:
1  2 
Gemfile
Gemfile.lock
app/controllers/accounts_controller.rb
app/controllers/application_controller.rb
app/controllers/auth/confirmations_controller.rb
app/controllers/directories_controller.rb
app/controllers/statuses_controller.rb
app/helpers/application_helper.rb
app/javascript/mastodon/locales/defaultMessages.json
app/javascript/mastodon/locales/en.json
app/javascript/mastodon/locales/ja.json
app/javascript/mastodon/locales/pl.json
app/javascript/styles/mastodon/components.scss
app/lib/activitypub/activity/create.rb
app/models/account.rb
app/models/form/admin_settings.rb
app/models/media_attachment.rb
app/models/status.rb
app/models/user.rb
app/serializers/rest/account_serializer.rb
app/services/reblog_service.rb
app/views/accounts/_header.html.haml
app/views/admin/dashboard/index.html.haml
app/views/admin/settings/edit.html.haml
app/views/admin/tags/index.html.haml
app/views/media/player.html.haml
app/views/statuses/_simple_status.html.haml
config/routes.rb
config/settings.yml
db/schema.rb
package.json
spec/models/follow_request_spec.rb
streaming/index.js
yarn.lock

diff --cc Gemfile
Simple merge
diff --cc Gemfile.lock
index a43a2c1febccd2fcb2eb3a24b0f383a3089967da,8cd4a97f13c4ef8fa29d3bcac46e4e57586d019d..6a3c990fc2ef25dcf764d691cf8f4c06e95e6aa2
@@@ -772,9 -762,9 +763,10 @@@ DEPENDENCIE
    rails-i18n (~> 6.0)
    rails-settings-cached (~> 0.6)
    rdf-normalize (~> 0.4)
 +  redcarpet (~> 3.5)
    redis (~> 4.2)
    redis-namespace (~> 1.8)
+   resolv (~> 0.1.0)
    rqrcode (~> 1.2)
    rspec-rails (~> 5.0)
    rspec-sidekiq (~> 3.1)
index 4e89446c7c8ca48c5db4cc5a8efc550ca9e8555f,1475bbcefa5cc680350a29a5ce0ffed5af07dded..0b5a2f3c9db67c3d1607823781c8b40c5794c93f
@@@ -17,12 -16,10 +17,14 @@@ class Auth::ConfirmationsController < D
  
    private
  
 +  def set_pack
 +    use_pack 'auth'
 +  end
 +
    def require_unconfirmed!
-     redirect_to edit_user_registration_path if user_signed_in? && current_user.confirmed? && current_user.unconfirmed_email.blank?
+     if user_signed_in? && current_user.confirmed? && current_user.unconfirmed_email.blank?
+       redirect_to(current_user.approved? ? root_path : edit_user_registration_path)
+     end
    end
  
    def set_body_classes
index 549c6a39e0847472dfc2b0afd153b37bc8bec368,f28c5b2afb54da0bf2bb11ff797082afa1685c1c..2263f286b3ffa58fb49ac72c5a8934ad3cec6be8
@@@ -6,9 -6,7 +6,8 @@@ class DirectoriesController < Applicati
    before_action :authenticate_user!, if: :whitelist_mode?
    before_action :require_enabled!
    before_action :set_instance_presenter
-   before_action :set_tag, only: :show
    before_action :set_accounts
 +  before_action :set_pack
  
    skip_before_action :require_functional!, unless: :whitelist_mode?
  
      render :index
    end
  
-   def show
-     render :index
-   end
    private
  
 +  def set_pack
 +    use_pack 'share'
 +  end
 +
    def require_enabled!
      return not_found unless Setting.profile_directory
    end
Simple merge
Simple merge
index 558a906d231bc73fa6bb52937e851c40a9d44cef,6fc7c56fddb9c373fca875e4320ee1e90132b782..0276ec058e19ced5fa03f1034f0817d6851ec142
@@@ -16,10 -16,8 +16,9 @@@ class Form::AdminSetting
      open_deletion
      timeline_preview
      show_staff_badge
-     enable_bootstrap_timeline_accounts
      bootstrap_timeline_accounts
 -    theme
 +    flavour
 +    skin
      min_invite_role
      activity_api_enabled
      peers_api_enabled
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 72eef18a9dfdf514624334f12855b6d4be049fa5,d78f3c6d1670a413390ccae8740d5af5f13c7aa6..e25b0ae844dccb7cc0cf264636709db689292013
@@@ -1,13 -1,10 +1,7 @@@
  - content_for :page_title do
    = t('admin.tags.title')
  
 -- content_for :header_tags do
 -  = javascript_pack_tag 'admin', async: true, crossorigin: 'anonymous'
 -
  .filters
-   .filter-subset
-     %strong= t('admin.tags.context')
-     %ul
-       %li= filter_link_to t('generic.all'), directory: nil
-       %li= filter_link_to t('admin.tags.directory'), directory: '1'
    .filter-subset
      %strong= t('admin.tags.review')
      %ul
index 191586248db5e5de5522122a4189f39261ef1072,f00c8f040b0877ee1ac1aebe01d9c4f56e5ab305..c1d630a63fa216224afa61eed8460b65f65573a7
@@@ -1,16 -1,12 +1,19 @@@
  - content_for :header_tags do
    = render_initial_state
 -  = javascript_pack_tag 'public', crossorigin: 'anonymous'
 +  = javascript_pack_tag "locales", crossorigin: 'anonymous'
 +  - if @theme
 +    - if @theme[:supported_locales].include? I18n.locale.to_s
 +      = javascript_pack_tag "locales/#{@theme[:flavour]}/#{I18n.locale}", crossorigin: 'anonymous'
 +    - elsif @theme[:supported_locales].include? 'en'
 +      = javascript_pack_tag "locales/#{@theme[:flavour]}/en", crossorigin: 'anonymous'
 +  = render partial: 'layouts/theme', object: @core
 +  = render partial: 'layouts/theme', object: @theme
  
+ :ruby
+   meta = @media_attachment.file.meta || {}
  - if @media_attachment.video?
-   = react_component :video, src: @media_attachment.file.url(:original), preview: @media_attachment.thumbnail.present? ? @media_attachment.thumbnail.url : @media_attachment.file.url(:small), frameRate: @media_attachment.file.meta.dig('original', 'frame_rate'), blurhash: @media_attachment.blurhash, width: 670, height: 380, editable: true, detailed: true, inline: true, alt: @media_attachment.description, media: [ActiveModelSerializers::SerializableResource.new(@media_attachment, serializer: REST::MediaAttachmentSerializer)].as_json do
+   = react_component :video, src: @media_attachment.file.url(:original), preview: @media_attachment.thumbnail.present? ? @media_attachment.thumbnail.url : @media_attachment.file.url(:small), frameRate: meta.dig('original', 'frame_rate'), blurhash: @media_attachment.blurhash, width: 670, height: 380, editable: true, detailed: true, inline: true, alt: @media_attachment.description, media: [ActiveModelSerializers::SerializableResource.new(@media_attachment, serializer: REST::MediaAttachmentSerializer)].as_json do
      %video{ controls: 'controls' }
        %source{ src: @media_attachment.file.url(:original) }
  - elsif @media_attachment.gifv?
index ab163245d5d9aeddb05f746808d6ff618f4b6f64,728e6b9b096b64c4c9c3762585e42ea762b93d20..a7c78b99744c3daf292c5b8504dc3b347205ba1e
    .status__content.emojify{ :data => ({ spoiler: current_account&.user&.setting_expand_spoilers ? 'expanded' : 'folded' } if status.spoiler_text?) }<
      - if status.spoiler_text?
        %p<
-         %span.p-summary> #{Formatter.instance.format_spoiler(status, autoplay: autoplay)}&nbsp;
+         %span.p-summary> #{Formatter.instance.format_spoiler(status, autoplay: prefers_autoplay?)}&nbsp;
          %button.status__content__spoiler-link= t('statuses.show_more')
 -    .e-content
 +    .e-content<
-       = Formatter.instance.format(status, custom_emojify: true, autoplay: autoplay)
+       = Formatter.instance.format(status, custom_emojify: true, autoplay: prefers_autoplay?)
        - if status.preloadable_poll
-         = react_component :poll, disabled: true, poll: ActiveModelSerializers::SerializableResource.new(status.preloadable_poll, serializer: REST::PollSerializer, scope: current_user, scope_name: :current_user).as_json do
-           = render partial: 'statuses/poll', locals: { status: status, poll: status.preloadable_poll, autoplay: autoplay }
+         = render_poll_component(status)
  
    - if !status.media_attachments.empty?
      - if status.media_attachments.first.video?
Simple merge
Simple merge
diff --cc db/schema.rb
Simple merge
diff --cc package.json
Simple merge
Simple merge
Simple merge
diff --cc yarn.lock
Simple merge