]> cat aescling's git repositories - mastodon.git/commitdiff
Merge branch 'master' into glitch-soc/merge-upstream
authorClaire <claire.github-309c@sitedethib.com>
Mon, 11 Jan 2021 10:55:42 +0000 (11:55 +0100)
committerClaire <claire.github-309c@sitedethib.com>
Mon, 11 Jan 2021 10:55:42 +0000 (11:55 +0100)
Conflicts:
- `app/models/public_feed.rb`:
  Upstream refactored a bit, glitch-soc had specific code for local-only
  statuses.
  Updated glitch-soc's specific code accordingly.

1  2 
Gemfile
Gemfile.lock
app/models/account.rb
app/models/public_feed.rb
app/models/status.rb
app/models/tag_feed.rb
package.json
yarn.lock

diff --cc Gemfile
Simple merge
diff --cc Gemfile.lock
Simple merge
Simple merge
index 2839da5cb501ccaccf3498974f777172201b1dc7,5e4c3e1cee98bdb3365d392755f1849f1cddcce5..2528ef1b6f724d8fcf391e5df3015f3b3f461b30
@@@ -35,12 -33,10 +35,14 @@@ class PublicFee
  
    private
  
-     local_account? && (local_only? || @options[:allow_local_only])
+   attr_reader :account, :options
 +  def allow_local_only?
++    local_account? && (local_only? || options[:allow_local_only])
 +  end
 +
    def with_reblogs?
-     @options[:with_reblogs]
+     options[:with_reblogs]
    end
  
    def with_replies?
    end
  
    def account?
-     @account.present?
+     account.present?
    end
  
-     @account&.local?
 +  def local_account?
++    account&.local?
 +  end
 +
    def media_only?
-     @options[:only_media]
+     options[:only_media]
    end
  
    def public_scope
      Status.joins(:media_attachments).group(:id)
    end
  
 +  def without_local_only_scope
 +    Status.not_local_only
 +  end
 +
    def account_filters_scope
-     Status.not_excluded_by_account(@account).tap do |scope|
-       scope.merge!(Status.not_domain_blocked_by_account(@account)) unless local_only?
-       scope.merge!(Status.in_chosen_languages(@account)) if @account.chosen_languages.present?
+     Status.not_excluded_by_account(account).tap do |scope|
+       scope.merge!(Status.not_domain_blocked_by_account(account)) unless local_only?
+       scope.merge!(Status.in_chosen_languages(account)) if account.chosen_languages.present?
      end
    end
  end
Simple merge
Simple merge
diff --cc package.json
Simple merge
diff --cc yarn.lock
Simple merge