Skip to content
Snippets Groups Projects
  1. Apr 17, 2017
    • Matt Jankowski's avatar
      Media controller specs (#2022) · cc1361c1
      Matt Jankowski authored
      * Add spec for media controller
      
      * Add MediaAttachment.attached scope
      
      * Simplify methods in media controller
      cc1361c1
    • alpaca-tc's avatar
      Required foreign keys (#2003) · 630de52f
      alpaca-tc authored
      * Add `required: true` option to foreign column
      
      * Fixes NoMethodError
      
      ```
      > Favourite.new.valid?
      NoMethodError: undefined method `reblog?' for nil:NilClass
      ```
      630de52f
  2. Apr 16, 2017
    • Matt Jankowski's avatar
      I18n health warnings (#1949) · f87b51fd
      Matt Jankowski authored
      * Rename admin.domain_block to admin.domain_blocks in prep for i18n improvement
      
      * Use implicit controller/action path for i18n in admin/domain_blocks
      
      * Add DomainBlock#accounts has_many
      
      * Avoid i18n health warning for `en` locale by using symbol scope with :count
      
      * Remove unused i18n key: plaintext_secret_html
      
      * Remove unused i18n key two_factor_auth.warning
      
      * Remove final will_paginate i18n keys
      
      * Remove unused key two_factor_auth.recovery_codes
      
      * Remove unused key: admin.reports.comment.none
      
      * Remove unused reports. i18n namespace (moved to admin.reports)
      
      * Ignore keys from locales which override activemodel and activerecord errors
      
      * Revert "Remove unused key: admin.reports.comment.none"
      
      This reverts commit 350ef2685fadc069e619bb6d1066190de195d942.
      
      * Update i18n key reference to match moved location
      
      * Add missing `en` keys to i18n
      
      * Tell i18n-tasks to ignore missing attributes that dont need overwriting
      
      * Add i18n-tasks unused to travis
      f87b51fd
    • Matt Jankowski's avatar
    • tackeyy's avatar
      Remove .keep in models (#1892) · fc34e0e1
      tackeyy authored
      fc34e0e1
    • alpaca-tc's avatar
      Add presence validation to Import (#1928) · de72db99
      alpaca-tc authored
      ```
      *An* `ActiveRecord::StatementInvalid` *occurred while* `POST </settings/import>` *was processed by* `imports#create`
      Exception
      ----------------
      PG::NotNullViolation: ERROR:  null value in column "type" violates not-null constraint
      ```
      de72db99
    • Eugen's avatar
      Make file attachment on MediaAttachment optional (#1865) · 5d710b11
      Eugen authored
      Create MediaAttachment but without actual file download when domain is blocked with reject_media set to true
      Clean up old media files when creating a new domain block with reject_media set to true
      Return remote_url in media attachments API if local file is not present
      Undo domain block action in admin UI
      Ability to enable reject_media from admin UI
      5d710b11
  3. Apr 15, 2017
    • Patrick Figel's avatar
      Add recovery code support for two-factor auth (#1773) · df4ff9a8
      Patrick Figel authored
      * Add recovery code support for two-factor auth
      
      When users enable two-factor auth, the app now generates ten
      single-use recovery codes. Users are encouraged to print the codes
      and store them in a safe place.
      
      The two-factor prompt during login now accepts both OTP codes and
      recovery codes.
      
      The two-factor settings UI allows users to regenerated lost
      recovery codes. Users who have set up two-factor auth prior to
      this feature being added can use it to generate recovery codes
      for the first time.
      
      Fixes #563 and fixes #987
      
      * Set OTP_SECRET in test enviroment
      
      * add missing .html to view file names
      df4ff9a8
  4. Apr 14, 2017
    • 西小倉宏信's avatar
      Remove .keep in models (#1748) · 290e8ef8
      西小倉宏信 authored
      290e8ef8
    • Matt Jankowski's avatar
      Admin reports controller improvements (#1714) · 8b74aa42
      Matt Jankowski authored
      * Simplify admin/reports controller filtering for index
      
      * Rename parameter to resolved
      
      * Fix issue where reports view could not access filter_link_to
      
      * Add coverage for admin/reports controller
      
      * DRY up resolution of related reports for target account
      
      * Clean up admin/reports routes
      
      * Add Report#statuses method
      
      * DRY up current account action taken params
      
      * Rubocop styles
      8b74aa42
  5. Apr 13, 2017
    • Matt Jankowski's avatar
      Admin accounts controller cleanup (#1664) · 3a9eb81a
      Matt Jankowski authored
      * Remove unused account_params method in admin/accounts controller
      
      * Introduce AccountFilter to find accounts
      
      * Use AccountFilter in admin/accounts controller
      
      * Use more restful routes admin silence and suspension area
      
      * Add admin/silences and admin/suspensions controllers
      3a9eb81a
    • Matt Jankowski's avatar
      Settings export refactor (#1646) · 0e39cc6a
      Matt Jankowski authored
      * Refactor Export to take an account and know about the export types
      
      * Use Export instance in settings/exports#show
      0e39cc6a
  6. Apr 12, 2017
  7. Apr 11, 2017
    • Matt Jankowski's avatar
      Refactor exports controller (#1567) · 3ddd936b
      Matt Jankowski authored
      * Add basic coverage for settings/exports controller
      
      * Remove unused @account variable from settings/exports controller
      
      * Add coverage for download export actions
      
      * Remove deprecated `render :text` in favor of `send_data` for csv downloads
      
      * Add model to handle exports
      
      * Use Export class in settings/exports controller
      
      * Simplify settings/exports controller methods
      
      * Move settings/export to more restful routes
      3ddd936b
    • blackle's avatar
  8. Apr 10, 2017
  9. Apr 09, 2017
  10. Apr 08, 2017
  11. Apr 07, 2017
    • Joël Quenneville's avatar
      DRY up reblog vs original status check · d4c94fa0
      Joël Quenneville authored
      Checking reblog vs original status was happening in multiple places
      across the app. For views, this logic was encapsulated in a helper
      method named `proper_status` but in the other layers of the app, the
      logic was duplicated.
      
      Because the logic is used at all layers of the app, we extracted it into
      a `Status#proper` method on the model and changed all uses of the logic
      to use this method. There is now a single source of truth for this
      condition.
      
      We added test coverage to untested methods that got refactored.
      d4c94fa0
    • Eugen's avatar
      Rewrite Atom generation from stream entries to use Ox instead of Nokogiri (#1124) · 6d6a429a
      Eugen authored
      * Rewrite Atom generation from stream entries to use Ox instead of Nokogiri::Builder
      
      StreamEntry is now limited to only statuses, which allows some optimization. Removed
      extra queries on AccountsController#show. AtomSerializer instead of AtomBuilderHelper
      used in AccountsController#show, StreamEntriesController#show, StreamEntryRenderer
      and PubSubHubbub::DistributionWorker
      
      PubSubHubbub::DistributionWorker moves n+1 DomainBlock query to PubSubHubbub::DeliveryWorker
      instead.
      
      All Salmon slaps that aren't based on StreamEntry still use AtomBuilderHelper and Nokogiri
      
      * All Salmon slaps now use Ox instead of Nokogiri. No touch from status on account
      6d6a429a
  12. Apr 05, 2017
  13. Apr 04, 2017
  14. Apr 03, 2017
  15. Apr 01, 2017
  16. Mar 30, 2017
  17. Mar 22, 2017
  18. Mar 18, 2017
  19. Mar 17, 2017
  20. Mar 16, 2017
  21. Mar 15, 2017
Loading