]> cat aescling's git repositories - mastodon.git/commitdiff
Merge remote-tracking branch 'tootsuite/master' into glitchsoc/master
authorJenkins <jenkins@jenkins.ninjawedding.org>
Thu, 4 Jan 2018 23:17:11 +0000 (23:17 +0000)
committerJenkins <jenkins@jenkins.ninjawedding.org>
Thu, 4 Jan 2018 23:17:11 +0000 (23:17 +0000)
1  2 
Gemfile.lock
app/controllers/accounts_controller.rb
app/controllers/application_controller.rb
app/controllers/statuses_controller.rb
app/models/user.rb
app/serializers/rest/instance_serializer.rb
app/services/batched_remove_status_service.rb
config/locales/pl.yml

diff --cc Gemfile.lock
Simple merge
Simple merge
index abbacc37476a74f6b36c6303b5fc065dff6b0335,ae1dbe6b592d3a666ea142a39a8dad1e86366d16..65907dad2f1b6a2679b501cfe0f7a1522512c22b
@@@ -27,13 -27,9 +27,13 @@@ class REST::InstanceSerializer < Active
    end
  
    def thumbnail
-     full_asset_url(instance_presenter.thumbnail.file.url) if instance_presenter.thumbnail
+     instance_presenter.thumbnail ? full_asset_url(instance_presenter.thumbnail.file.url) : full_pack_url('preview.jpg')
    end
  
 +  def max_toot_chars
 +    StatusLengthValidator::MAX_CHARS
 +  end
 +
    def stats
      {
        user_count: instance_presenter.user_count,
Simple merge