Skip to content
Snippets Groups Projects
  1. Apr 13, 2017
  2. Apr 12, 2017
  3. 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
    • Matt Jankowski's avatar
      Imports controller errors (#1553) · 89e8e110
      Matt Jankowski authored
      * Add spec for settings/imports controller
      
      * Add failing spec for settings/imports#create
      
      * Fix broken imports
      
      * Refactor ImportWorker
      89e8e110
    • Matt Jankowski's avatar
      Remove unused methods from StreamEntriesHelper (#1365) · e60286a3
      Matt Jankowski authored
      Removes:
      
      - avatar_for_status_url
      - relative_time
      - reblogged_by_me_class
      - favourited_by_me_class
      e60286a3
    • Matt Jankowski's avatar
      Remove unused AtomBuilderHelper (#1364) · 53850bce
      Matt Jankowski authored
      This was used in the views/atom/user_stream.xml.ruby file, which no longer is
      used.
      53850bce
  4. 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
  5. Apr 09, 2017
  6. Apr 08, 2017
  7. 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
  8. Apr 05, 2017
  9. Apr 04, 2017
Loading