Skip to content
Snippets Groups Projects
  1. Apr 10, 2017
    • Matt Jankowski's avatar
      Pagination improvements (#1445) · 4ada5098
      Matt Jankowski authored
      * Replace will_paginate with kaminari
      
      * Use #page instead of #paginate in controllers
      
      * Replace will_paginate.page_gap with pagination.truncate in i18n
      
      * Customize kaminari views to match prior styles
      
      * Set kaminari options to match prior behavior
      
      * Replace will_paginate with paginate in views
      4ada5098
    • Eugen's avatar
      When avatar/header are GIF, generate static versions (#1428) · 12f72e17
      Eugen authored
      * When avatar/header are GIF, generate static versions.
      Account API returns "avatar"/"avatar_static", "header"/"header_static"
      Static version is the same as original for other cases
      Web UI de-animates avatars in toots, lists of users
      
      Fix #441, fix #596, prerequisite for #1064
      
      * Fix JS test
      
      * Add rake task to generate static avatars/headers from GIF ones, add test
      12f72e17
    • Eugen's avatar
      API param to exclude notification types from response (#1341) · 2810013b
      Eugen authored
      * Add exclude_types param to /api/v1/notifications
      
      * Exclude notification types in web UI through exclude_types in the API
      2810013b
    • Matt Jankowski's avatar
      Clean up generation of account webfinger string (#1477) · 0687ab8a
      Matt Jankowski authored
      * Consolidate webfinger string creation under Account#to_webfinger_s
      
      * Introduce Account#local_username_and_domain for consolidation
      0687ab8a
    • Matt Jankowski's avatar
      Admin base controller (#1465) · dbe9f33f
      Matt Jankowski authored
      * Add Admin::BaseController to wrap admin area
      
      Extracts the setting of the `admin` layout and verifying that users are admins
      to a common base class for the admin/ controllers.
      
      * Add basic coverage for admin/reports and admin/settings controllers
      dbe9f33f
  2. Apr 09, 2017
  3. Apr 08, 2017
  4. Apr 07, 2017
    • Joël Quenneville's avatar
      Implement pending specs on Status · 4fdeac21
      Joël Quenneville authored
      Implement the two pending specs on `Status`: `reblogs_count` and
      `favourites_count`.
      4fdeac21
    • Chad Pytel's avatar
      Use I18n for media attachment validation errors · ad5ddd5e
      Chad Pytel authored
      These are currently user facing errors, but are not localized. This adds the
      ability for these messages to be localized.
      ad5ddd5e
    • Chad Pytel's avatar
      Add specs for PostStatusService · 13c00770
      Chad Pytel authored
      This implements all pending specs, and adds additional coverage for the
      following functionality:
      
      * Normal status creation
      * Creating a reply status
      * Creating a sensitive status
      * Creating a status with spoiler text
      * A status with no spoiler text gets an empty string for spoiler text
      * Creating a status with custom visibility
      * Creating a status for an application
      * Processing mentions
      * Processing Hashtags
      * Pinging PuSH hubs
      * Crawling links
      * Attaching media
      13c00770
    • 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
    • Chad Pytel's avatar
      Add specs for media attachment validations · 38bec798
      Chad Pytel authored
      There are currently not specs for the two media validations that are performed
      by `PostStatusService`. This adds specs for the validations that ensure that you
      cannot attach more than four files, and that a status cannot have both image and
      video attachments.
      38bec798
  5. Apr 05, 2017
  6. Apr 04, 2017
  7. Apr 03, 2017
  8. Mar 30, 2017
  9. Mar 28, 2017
  10. Mar 22, 2017
  11. Mar 05, 2017
  12. Mar 03, 2017
  13. Mar 02, 2017
  14. Feb 22, 2017
  15. Feb 14, 2017
  16. Feb 12, 2017
  17. Feb 11, 2017
  18. Feb 06, 2017
Loading