Skip to content
Snippets Groups Projects
  1. Apr 17, 2017
  2. Apr 16, 2017
    • 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
    • Matt Jankowski's avatar
      View spec fix (#1888) · 3834e1e6
      Matt Jankowski authored
      * Add option to disable verify partial doubles
      
      * Add show_landing_strip? helper method
      
      * Use show_landing_strip? helper in accounts and stream entries views
      
      * Fix naming in view specs
      3834e1e6
  3. Apr 15, 2017
    • Matt Jankowski's avatar
    • Matt Jankowski's avatar
      About page contact email (#1839) · 3b8908c1
      Matt Jankowski authored
      * Correct site_contact_email typo
      
      * Separate about more page into partials, add specs
      3b8908c1
    • Matt Jankowski's avatar
      Silence Devise deprecation warning about TestHelpers (#1840) · 355965c1
      Matt Jankowski authored
      Devise changed their approach -
      https://github.com/plataformatec/devise/commit/3f3ec236bb50a2ae8b0eede90d8f7ecd201d7dbb
      
      This change silences a deprecation warning about `TestHelpers`
      355965c1
    • 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
    • Matt Jankowski's avatar
      Account search service refactor (#1791) · 40fd1de4
      Matt Jankowski authored
      * Begin coverage for account search service
      
      * Coverage for hashtag query
      
      * Coverage for calling local vs remote find based on domain presence
      
      * Spec to check that exact matches are not duped
      
      * Coverage of resolve option
      
      * Coverage for account being provided
      
      * Start to refactor account search service
      
      * Isolate query username and domain methods
      
      * Isolate exact_match method
      
      * Extract methods for local and remote results
      
      * Simplify local vs remote and account isoliation
      
      * Extract methods for local and remote results
      
      * Simplify de-dupe of exact match
      
      * Simplify logic to check for non exact remotes
      
      * Cache some methods
      
      * Remove nil from exact_match from results array
      
      * Return exact matches first
      
      * Use find_remote even with no domain
      
      Account.find_local is just an alias for Account.find_remote(user, nil) - so we
      can not bother with the conditional here, and call find_remote directly.
      40fd1de4
    • ThibG's avatar
      Refresh webfinger (#1323) · 31f0bcf8
      ThibG authored
      * Refresh local info for remote accounts when webfinger returns new values
      
      It only refreshes account info if one of the URLs or the public-key changes,
      in which cases it refreshes the full info, re-downloading the feeds from that
      user.
      
      Some special handling should probably be done when the public key changes,
      but I have been unable to find any use for it in Mastodon yet.
      
      * Re-fetch remote users we aren't subscribed to.
      
      This might induce performance issues, we might want to only do that for users
      we explicitly attempted to subscribe but failed to.
      
      * Refactor changes
      
      * Do not refresh existing remote account details more than once a day
      
      * Avoid re-fetching webfinger info in tests unless otherwise specified
      31f0bcf8
    • Matt Jankowski's avatar
      Rename admin/accounts_helper to admin/filter_helper (#1816) · 09540192
      Matt Jankowski authored
      - Add some spec coverage for both methods
      - Add explicit constant call-outs for where the params are from
      09540192
    • Ben Roberts's avatar
      add basic microformats tests (#1803) · 89707ad0
      Ben Roberts authored
      as suggested, moving to view tests rather than a controller test
      replaces https://github.com/tootsuite/mastodon/pull/1786 which i will
      close momentary
      89707ad0
  4. Apr 14, 2017
    • Chad Pytel's avatar
      Introduce capybara and first feature spec (#1801) · 92cd207c
      Chad Pytel authored
      This commit introduces Capybara and the first feature spec.
      
      I focused on coverage for log in for the first feature spec because that would
      have prevented 624a9a71 causing #1236.
      92cd207c
    • Matt Jankowski's avatar
      Improve i18n chooser (#1804) · f5cd1383
      Matt Jankowski authored
      * Add locale spec with failing locale plus region check
      
      * Use a more accurate locale when supplied by browser headers
      
      Previously we were using a matching option which would use the first locale
      available which matched the locale portion, even if a region was specified.
      
      This changes to first try to find an exact match, and then fall back to the
      region, and then fall back to the  default.
      
      * Clean up default_locale method
      f5cd1383
    • 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
  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
    • 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
  8. 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
Loading