Skip to content
Snippets Groups Projects
  1. May 26, 2017
  2. May 23, 2017
    • Daniel Hunsaker's avatar
      Add Support for Nanobox (#1709) · 256e3adc
      Daniel Hunsaker authored
      * Nanobox Support
      
      - Added support for running Mastodon using Nanobox, both for local development, and for deployment to production
      - Dev mode tested and is working properly
      - Deployment is undergoing test as of this writing. If it works, this line will be amended to state success; if not, one or more subsequent commits will provide fixes.
      
      * [nanobox] Resolve Deploy Issues
      
      Everything seems to work except routing to the streaming API. Will investigate with the Nanobox staff and make fix commits if needed.
      
      Changes made:
      - Also need `NODE_ENV` in production
      - Node runs on `:4000`
      - Use `envsubst` to commit `.env.production` values, since `dotEnv` packages don't always support referencing other variables
      - Can't precompile assets after `transform` hook, but do this locally so it only has to be done once.
      - Rails won't create `production.log` on its own, so we do this ourselves.
      - Some `start` commands run from `/data/` for some reason, so use absolute paths in command arguments
      
      * [nanobox] Update Ruby version
      
      * [nanobox] Fix db.rake Ruby code style issues
      
      * [nanobox] Minor Fixes
      
      Some minor adjustments to improve functionality:
      
      - Fixed routing to `web.stream` instances
      - Adjust `.env.nanobox` to properly generate a default `SMTP_FROM_ADDRESS` via `envsubst`
      - Update Nginx configs to properly support the needed HTTP version and headers for proper functionality (the streaming API doesn't work without some of these settings in place)
      
      * [nanobox] Move usage info to docs repo
      
      * [nanobox] Updates for 1.2.x
      
      - Need to leave out `pkg-config` since Nanobox deploys without Ruby's headers - create a gem group to exclude the gem during Nanobox installs, but allow it to remain part of the default set otherwise
      - Update cron jobs to cover new/updated Rake tasks
      - Update `.env.nanobox` to include latest defaults and additions
      
      * [nanobox] Fix for nokogumbo, added in 1.3.x
      
      Apparently, nokogumbo (pulled in by sanitize, added with `OEmbed Support for PreviewCard` (#2337) - 88725d6c) tries to install before nokogiri, despite needing nokogiri available to build properly. Instruct it to use the same settings as nokogiri does when building nokogiri directly, instead of via bundler.
      
      * [nanobox] Set NODE_ENV during asset compile
      
      The switch to WebPack will rely on the local value of the NODE_ENV evar, so set it to production during asset compilation.
      
      * [nanobox] Rebase on master; update Nginx configs
      
      - `pkg-config` Gem no longer causes issues in Nanobox, so revert the Gemfile change which allowed excluding it
      - Update Nginx configuration files with latest recommendations from production documentation
      - Rebase on master to Get This Merged™
      
      Everything should be golden!
      256e3adc
  3. May 22, 2017
  4. May 20, 2017
  5. May 10, 2017
  6. May 08, 2017
  7. May 05, 2017
    • Eugen Rochko's avatar
      More robust PuSH subscription refreshes (#2799) · 81584779
      Eugen Rochko authored
      * Fix #2473 - Use sidekiq scheduler to refresh PuSH subscriptions instead of cron
      
      Fix an issue where / in domain would raise exception in TagManager#normalize_domain
      
      PuSH subscriptions refresh done in a round-robin way to avoid hammering a single
      server's hub in sequence. Correct handling of failures/retries through Sidekiq (see
      also #2613). Optimize Account#with_followers scope. Also, since subscriptions
      are now delegated to Sidekiq jobs, an uncaught exception will not stop the entire
      refreshing operation halfway through
      
      Fix #2702 - Correct user agent header on outgoing http requests
      
      * Add test for SubscribeService
      
      * Extract #expiring_accounts into method
      
      * Make mastodon:push:refresh no-op
      
      * Queues are now defined in sidekiq.yml
      
      * Queues are now in sidekiq.yml
      81584779
  8. May 04, 2017
  9. May 02, 2017
    • yhirano's avatar
      annotate models (#2697) · 298796cc
      yhirano authored
      * add annotate to Gemfile
      
      * rails g annotate:install
      
      * configure annotate_models
      
      * add schema info to models
      
      * fix rubocop to add frozen_string_literal
      298796cc
  10. Apr 29, 2017
    • yhirano's avatar
      Downgrade rubocop 0.48.1 => 0.46.0 (#2628) · 8325866c
      yhirano authored
      * downgrade rubocop 0.48.1 => 0.46.0
      
      * exclude vendor/**/* from rubocop target files
      
      * add frozen_string_literal comment line
      
      * fix percent literal delimited by ( and )
      
      * fix alignment
      
      * remove comment disabling unknown cop
      8325866c
    • Eugen Rochko's avatar
      Bump version to 1.3.2 (#2623) · 01e011bc
      Eugen Rochko authored
      v1.3.2
      01e011bc
    • Patrick Figel's avatar
      Set unknown attachment type when adding domain blocks (#2605) · 197af5de
      Patrick Figel authored
      Follow-up to #2599. When a domain block with `reject_media` is
      added or `rake mastodon:media:remove_remote` is invoked, mastodon
      deletes the locally cached attachments and avatars but does not
      reflect that change in the database, causing the `file` fields to
      still have values. This change persists the deletion in the
      database and sets the attachment type to unknown.
      
      This also introduces a one-off rake task that sets all attachments
      without a local file to the "unknown" type. The upgrade notes for
      the next release should contain a post-upgrade step with
      `rake mastodon:media:set_unknown`.
      197af5de
  11. Apr 28, 2017
  12. Apr 27, 2017
  13. Apr 26, 2017
  14. Apr 25, 2017
  15. Apr 21, 2017
  16. Apr 19, 2017
    • Eugen's avatar
      Fix #2108 - Fix gif uploads (#2171) · 2e4afccd
      Eugen authored
      * Fix #2108 - Fix gif uploads
      Add specs for media attachment gifv conversion
      
      * Add ffmpeg to travis
      
      * Make travis install ffmpeg, not libav
      
      * Switch travis to trusty
      v1.2.2
      2e4afccd
  17. Apr 17, 2017
    • Matt Jankowski's avatar
      Remove unused methods (#1730) · 16d50f60
      Matt Jankowski authored
      * Remove unused method #set_counters_maps from api controller
      
      * Remove unused method #set_account_counters_maps from api controller
      
      * Remove unused method Account#followers_domains
      
      * Remove unused User.prolific scope
      
      * Add mastodon:users:admins task to list all admin emails
      
      * Use interpolated query style in Account.triadic_closures
      
      * Coverage for Account.triadic_closures
      16d50f60
    • Eugen's avatar
      Fix #1972, fix #1870 - Fix special characters in XML, add tests (#1988) · 15ec4ae0
      Eugen authored
      Also improve efficiency of the mastodon:maintenance:add_static_avatars task
      15ec4ae0
  18. Apr 16, 2017
  19. Apr 15, 2017
  20. Apr 11, 2017
  21. Apr 10, 2017
  22. Apr 08, 2017
  23. Mar 31, 2017
  24. Mar 05, 2017
  25. Mar 04, 2017
  26. Mar 03, 2017
  27. Feb 13, 2017
  28. Feb 01, 2017
  29. Jan 26, 2017
  30. Jan 20, 2017
Loading