Skip to content
Snippets Groups Projects
  1. May 06, 2017
  2. May 05, 2017
    • Matt Jankowski's avatar
    • alpaca-tc's avatar
      Fixes unknown mime type (#2822) · ee3e0a93
      alpaca-tc authored
      ee3e0a93
    • Matt Jankowski's avatar
      Misc spec coverage improvements (#2821) · 484c9709
      Matt Jankowski authored
      * Dont use raise_error by itself (avoids warning)
      
      * Add coverage for AccountFilter
      
      * Improve coverage and refactor for Subscription#lease_seconds
      
      * Improve coverage and refactor for NotificationMailer
      
      * Simplify assignment of min/max threshold on subscription
      484c9709
    • Eugen Rochko's avatar
      More robust PuSH subscription refreshes (#2799) · 81584779
      Eugen Rochko authored
      * Fix #2473 - Use sidekiq scheduler to refresh PuSH subscriptions instead of cron
      
      Fix an issue where / in domain would raise exception in TagManager#normalize_domain
      
      PuSH subscriptions refresh done in a round-robin way to avoid hammering a single
      server's hub in sequence. Correct handling of failures/retries through Sidekiq (see
      also #2613). Optimize Account#with_followers scope. Also, since subscriptions
      are now delegated to Sidekiq jobs, an uncaught exception will not stop the entire
      refreshing operation halfway through
      
      Fix #2702 - Correct user agent header on outgoing http requests
      
      * Add test for SubscribeService
      
      * Extract #expiring_accounts into method
      
      * Make mastodon:push:refresh no-op
      
      * Queues are now defined in sidekiq.yml
      
      * Queues are now in sidekiq.yml
      81584779
  3. May 03, 2017
  4. May 02, 2017
  5. 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
    • yhirano's avatar
      Fix Rubocop offences (#2630) · 3988f2da
      yhirano authored
      * disable Bundler/OrderedGems
      
      * fix rubocop Lint/UselessAssignment
      
      * fix rubocop Style/BlockDelimiters
      
      * fix rubocop Style/AlignHash
      
      * fix rubocop Style/AlignParameters, Style/EachWithObject
      
      * fix rubocop Style/SpaceInLambdaLiteral
      3988f2da
    • Yamagishi Kazutoshi's avatar
      Detect extension for preview card (#2679) · 1899cf5f
      Yamagishi Kazutoshi authored
      * Detect extension for preview card
      
      * next
      1899cf5f
  6. Apr 30, 2017
  7. Apr 29, 2017
  8. Apr 28, 2017
    • 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
      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
      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
  9. Apr 27, 2017
  10. Apr 26, 2017
    • Francis Chong's avatar
      Add media dimensions (#2448) · 193dddb4
      Francis Chong authored
      * Fixes #1985
      
      - add migration AddMediaAttachmentMeta, which add meta field to media_attachments
      - before saving attachment, set file meta if needed
      - add meta in api
      
      * add spec
      
      * align the “size” format for image and video
      
      * fix code climate
      
      * fixes media_attachment_spec.rb
      193dddb4
  11. Apr 25, 2017
    • Eugen's avatar
      Punycode URI normalization (#2370) · 17c591ff
      Eugen authored
      * Fix #2119 - Whenever about to send a HTTP request, normalize the URI
      
      * Add test for IDN request in FetchLinkCardService
      
      * Perform IDN normalization on domains before they are stored in the DB
      17c591ff
  12. Apr 23, 2017
    • Effy Elden's avatar
      Report processing improvements (#2349) · 1801a364
      Effy Elden authored
      * Expose media attachments on reported statuses directly
      
      * Comment out unused bulk report checkbox. Add title to report comment for viewing full comment. Add 'contents' column, with icons and numerical indicators to show the number of referenced statuses and media attachments in the report
      
      * Link account name on authorize_follow card back to account
      
      * Add localisation string for report_contents
      
      * Show new admin accounts card partial on report view. Apply simple_format to report comment so newlines are preserved.
      
      * Add new admin accounts card partial, for display quick useful admin stats (e.g. report history, moderation status).
      
      * Fix localized variable
      1801a364
    • Eugen's avatar
      Followers-only post federation (#2111) · 50151496
      Eugen authored
      * Make private toots get PuSHed to subscription URLs that belong to domains where you have approved followers
      
      * Authorized followers controller, stub for bulk action
      
      * Soft block in the background
      
      * Add simple test for new controller
      
      * Rename Settings::FollowersController to Settings::FollowerDomainsController, paginate results,
      rename "private" post setting to "followers-only", fix pagination style, improve post privacy
      preferences style, improve warning style
      
      * Extract compose form warnings into own container, show warning when posting to followers-only with unlocked account
      50151496
    • Evan Minto's avatar
      ActivityPub: Add basic, read-only support for Outboxes, Notes, and... · 66fd8e78
      Evan Minto authored
      ActivityPub: Add basic, read-only support for Outboxes, Notes, and Create/Announce Activities (#2197)
      
      * Clean up collapsible components
      
      * Expose user Outboxes and AS2 representations of statuses
      
      * Save work thus far.
      
      * Fix bad merge.
      
      * Save my work
      
      * Clean up pagination.
      
      * First test working.
      
      * Add tests.
      
      * Add Forbidden error template.
      
      * Revert yarn.lock changes.
      
      * Fix code style deviations and use localized instead of hardcoded English text.
      66fd8e78
    • Ash Furrow's avatar
      Admin UI for confirming users (#2245) · 723f25a9
      Ash Furrow authored
      * Shows confirmed status in list.
      
      * Adds ability to confirm users in admin UI.
      
      * Added new english translations.
      
      * Addresses feedback from #2245.
      
      * More feedback.
      723f25a9
  13. Apr 22, 2017
  14. Apr 19, 2017
  15. Apr 18, 2017
  16. Apr 17, 2017
Loading