Skip to content
Snippets Groups Projects
  1. May 04, 2017
  2. May 03, 2017
    • ThibG's avatar
      Additional specs for URI handling (#2759) · 8d4e7504
      ThibG authored
      8d4e7504
    • Eugen Rochko's avatar
      Fix #2706 - Always respond with 200 to PuSH payloads (#2733) · bafd22ec
      Eugen Rochko authored
      Fix #2196 - Respond with 201 when Salmon accepted, 400 when unverified
      Fix #2629 - Correctly handle confirm_domain? for local accounts
      Unify rules for extracting author acct from XML, prefer <email>, fall back
      to <name> + <uri> (see also #2017, #2172)
      bafd22ec
    • Matt Jankowski's avatar
      Language improvements, replace whatlanguage with CLD (#2753) · 8c5ad23b
      Matt Jankowski authored
      * add failing en specs
      
      * add cld2 gem
      
      * Replace WhatLanguage with CLD
      8c5ad23b
    • Eugen Rochko's avatar
      Replace sprockets/browserify with Webpack (#2617) · f5bf5ebb
      Eugen Rochko authored
      * Replace browserify with webpack
      
      * Add react-intl-translations-manager
      
      * Do not minify in development, add offline-plugin for ServiceWorker background cache updates
      
      * Adjust tests and dependencies
      
      * Fix production deployments
      
      * Fix tests
      
      * More optimizations
      
      * Improve travis cache for npm stuff
      
      * Re-run travis
      
      * Add back support for custom.scss as before
      
      * Remove offline-plugin and babili
      
      * Fix issue with Immutable.List().unshift(...values) not working as expected
      
      * Make travis load schema instead of running all migrations in sequence
      
      * Fix missing React import in WarningContainer. Optimize rendering performance by using ImmutablePureComponent instead of
      React.PureComponent. ImmutablePureComponent uses Immutable.is() to compare props. Replace dynamic callback bindings in
      <UI />
      
      * Add react definitions to places that use JSX
      
      * Add Procfile.dev for running rails, webpack and streaming API at the same time
      f5bf5ebb
  3. May 02, 2017
  4. May 01, 2017
    • Matt Jankowski's avatar
      Coverage for remote follows (#2694) · a4859446
      Matt Jankowski authored
      * Add coverage for create with empty acct value
      
      * Add coverage for create with webfinger failure
      
      * Add coverage for create with webfinger providing bad values
      
      * Add coverage for create when webfinger is good
      
      * Add coverage for session[:remote_follow] having data
      
      * Simplify how remote follow pulls acct from session
      
      * Remote follow behaves more like model
      
      * Move the discovery portions of remote follow out of controller
      
      * Check for suspended accounts
      a4859446
    • Matt Jankowski's avatar
      Filter on allowed user language preferences (#2361) · f025cc67
      Matt Jankowski authored
      * Naive approached to timeline filtering
      
      * Convert allowed_languages into a db column
      
      * Allow users to choose languages to see statuses in
      
      * Style list items as two columns
      
      * Add a hint to explain language filtering preference
      f025cc67
  5. Apr 30, 2017
  6. Apr 29, 2017
  7. Apr 28, 2017
    • Joël Quenneville's avatar
      Add tests to the Feed model (#2594) · 27301312
      Joël Quenneville authored
      This adds a test for the `Feed#get` method. While the data
      transformations in `Feed#get` may seem redundant, they are important to
      maintain the order from Redis. The tests I wrote will fail if someone
      tries to refactor away this "redundancy" (as I tried to do in the first
      iteration of this change).
      27301312
    • Patrick Figel's avatar
      Set correct attachment type for rejected media (#2599) · 8ac7fca5
      Patrick Figel authored
      In #2110, a new attachment type "unknown" was introduced for
      attachments that were rejected due to a domain being blocked using
      reject_media. However, the "type" field was never set to "unknown"
      because a default value of "0" (image) is set for that column,
      causing the `type.blank?` expression to always equal false.
      
      This version uses type_changed? instead, causing the type to be set
      to "unknown" unless a type has been explicitly set. This introduces
      a small change in behaviour causing the type to be set to unknown
      before paperclip calls `before_post_process`. Presumably this
      behaviour is more appropriate than the current one because the
      attachment type has not been determined by that point.
      
      Included are new tests for `ProcessFeedService` and
      `UpdateRemoteProfileService` which now check that remote media is
      downloaded for non-blocked domains and is rejected for others.
      8ac7fca5
    • Matt Jankowski's avatar
      a823509b
    • Matt Jankowski's avatar
    • Yamagishi Kazutoshi's avatar
      71e73e36
    • Matt Jankowski's avatar
      More controller specs (#2561) · 9566893c
      Matt Jankowski authored
      * Add render_views in more places
      
      * Delegate methods from account to user with allow nil true, so that admin accounts show view renders when missing a user
      
      * Use actual account instances in authorize follow controller spec
      9566893c
    • Matt Jankowski's avatar
      429480bb
    • Matt Jankowski's avatar
      More status specs (#2564) · effb08ed
      Matt Jankowski authored
      * Add rough outline of coverage needed for public timeline
      
      * Specs for visibility, replies, boosts
      
      * Specs for silenced account
      
      * Specs for local_only option
      
      * Specs for blocks and mutes
      
      * Add tentative spec around including other silenced account statuses
      
      * Add with_public_visibility scope
      
      * Add simple coverage for tag_timeline
      
      * Tag timeline includes replies
      
      * Replace tag.statuses with a tagged_with scope in tag timeline method
      
      * Use with_public_visibility in tag timeline
      
      * Extract common scope between public and tag timelines to method
      
      * Extract local domain check to local_only scope
      
      * Extract local_only check to starting scope method
      
      * Move list of excluded from timeline account ids to account model
      
      * Simplify excluded accounts list on account model
      
      * Only join accounts when needed
      
      * Rename method for account specific filtering
      
      * Extract method for account exclusions
      
      * Fix bug where silenced accounts were not including statuses from other silenced accounts
      
      * DRY up filter application from account or no account
      
      * timeline_scope can be private
      
      * Add spec showing that account can find its excluded accounts ids
      
      * Add spec which fails if local_only does not have a left outer join
      
      * rubocop
      effb08ed
  8. Apr 27, 2017
  9. Apr 26, 2017
  10. Apr 25, 2017
    • Guillaume Lo Re's avatar
      Stricter whitelist rules (#2213) · 7177e37b
      Guillaume Lo Re authored
      * Stricter whitelist rules
      
      * Linting
      
      * Added spec for blacklisting
      
      * Test subdomain blacklist on domain whitelist
      
      * No need to split
      
      * Change spec name
      7177e37b
    • alpaca-tc's avatar
      Localize with i18n for Devise::FailureApp (#2309) · 9317ec8e
      alpaca-tc authored
      This PR fixes I18n.locale for rake middlewares. Mastodon uses Devise that depends on Warden.
      Warden::Manager can be found in rake middleware. It is outside of the controller.
      
      In the case of authentication failed, warden calls throw(:warden). At the time Warden::Manager
      delegates request to failure_app to generate response and flash[:alert] after catching it.
      Unfortunately, I18n.locale is already reset then because I18n.with_locale is enabled only
      inside the controller. If we used I18n.locale=, Devise::FailureApp could get the current locale.
      9317ec8e
    • Evan Minto's avatar
      Change ActivityPub paging to match spec. Clean up ActivityPub outbox changes. (#2410) · 122d59ac
      Evan Minto authored
      * Change ActivityPub paging to match spec. Clean up ActivityPub outbox changes.
      
      * Fix code style and test failures for OutboxController.
      
      * Attempt to fix CI errors.
      122d59ac
    • Eugen Rochko's avatar
      Fix #2402 - Add Idempotency-Key header to PostStatusService that prevents (#2419) · 8b5179d0
      Eugen Rochko authored
      duplicates. Web UI regenerates UUID for that header every time the compose
      form is changed or successfully submitted
      
      Also, fix Farsi i18n overwriting the English one
      8b5179d0
Loading