Skip to content
Snippets Groups Projects
  1. Jun 10, 2017
  2. Jun 09, 2017
    • Matt Jankowski's avatar
      Move reblogged_by and favourited_by actions out of api/v1/statuses and into... · 5282ba86
      Matt Jankowski authored
      Move reblogged_by and favourited_by actions out of api/v1/statuses and into unique controllers (#3646)
      
      * Add specs for api statuses routes
      
      * Update favourited_by and reblogged_by api routes
      
      * Move methods into new controllers
      
      * Use load_accounts methods to simplify index actions
      
      * Clean up load_accounts methods
      
      * Clean up link header generation
      
      * Check for link headers in specs
      
      * Remove unused actions from api/v1/statuses controller
      
      * Remove specs for moved actions
      5282ba86
  3. Jun 08, 2017
  4. Jun 06, 2017
  5. Jun 05, 2017
    • Daigo 3 Dango's avatar
      Redirect to streaming_api_base_url (#3579) · 2985d089
      Daigo 3 Dango authored
      * Redirect to streaming_api_base_url
      
      When Rails receives a request to streaming API, it most likely
      means that there is another host which is configured to respond
      to it. This is to redirect clients to that host if
      `STREAMING_API_BASE_URL` is set as another host.
      
      * Use the new Ruby 1.9 hash syntax
      2985d089
  6. May 31, 2017
  7. May 23, 2017
  8. May 18, 2017
    • Eugen Rochko's avatar
      Account domain blocks (#2381) · 620d0d80
      Eugen Rochko authored
      * Add <ostatus:conversation /> tag to Atom input/output
      
      Only uses ref attribute (not href) because href would be
      the alternate link that's always included also.
      
      Creates new conversation for every non-reply status. Carries
      over conversation for every reply. Keeps remote URIs verbatim,
      generates local URIs on the fly like the rest of them.
      
      * Conversation muting - prevents notifications that reference a conversation
      (including replies, favourites, reblogs) from being created. API endpoints
      /api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
      
      Currently no way to tell when a status/conversation is muted, so the web UI
      only has a "disable notifications" button, doesn't work as a toggle
      
      * Display "Dismiss notifications" on all statuses in notifications column, not just own
      
      * Add "muted" as a boolean attribute on statuses JSON
      
      For now always false on contained reblogs, since it's only relevant for
      statuses returned from the notifications endpoint, which are not nested
      
      Remove "Disable notifications" from detailed status view, since it's
      only relevant in the notifications column
      
      * Up max class length
      
      * Remove pending test for conversation mute
      
      * Add tests, clean up
      
      * Rename to "mute conversation" and "unmute conversation"
      
      * Raise validation error when trying to mute/unmute status without conversation
      
      * Adding account domain blocks that filter notifications and public timelines
      
      * Add tests for domain blocks in notifications, public timelines
      Filter reblogs of blocked domains from home
      
      * Add API for listing and creating account domain blocks
      
      * API for creating/deleting domain blocks, tests for Status#ancestors
      and Status#descendants, filter domain blocks from them
      
      * Filter domains in streaming API
      
      * Update account_domain_block_spec.rb
      620d0d80
  9. May 15, 2017
    • Eugen Rochko's avatar
      Feature conversations muting (#3017) · d0dd9eb5
      Eugen Rochko authored
      * Add <ostatus:conversation /> tag to Atom input/output
      
      Only uses ref attribute (not href) because href would be
      the alternate link that's always included also.
      
      Creates new conversation for every non-reply status. Carries
      over conversation for every reply. Keeps remote URIs verbatim,
      generates local URIs on the fly like the rest of them.
      
      * Conversation muting - prevents notifications that reference a conversation
      (including replies, favourites, reblogs) from being created. API endpoints
      /api/v1/statuses/:id/mute and /api/v1/statuses/:id/unmute
      
      Currently no way to tell when a status/conversation is muted, so the web UI
      only has a "disable notifications" button, doesn't work as a toggle
      
      * Display "Dismiss notifications" on all statuses in notifications column, not just own
      
      * Add "muted" as a boolean attribute on statuses JSON
      
      For now always false on contained reblogs, since it's only relevant for
      statuses returned from the notifications endpoint, which are not nested
      
      Remove "Disable notifications" from detailed status view, since it's
      only relevant in the notifications column
      
      * Up max class length
      
      * Remove pending test for conversation mute
      
      * Add tests, clean up
      
      * Rename to "mute conversation" and "unmute conversation"
      
      * Raise validation error when trying to mute/unmute status without conversation
      d0dd9eb5
  10. May 08, 2017
  11. May 07, 2017
  12. May 04, 2017
  13. May 02, 2017
  14. Apr 26, 2017
  15. Apr 23, 2017
    • 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
  16. Apr 22, 2017
    • Matt Jankowski's avatar
      2FA controller cleanup (#2296) · 67dea31b
      Matt Jankowski authored
      * Add spec coverage for settings/two_factor_auth area
      
      * extract setup method for qr code
      
      * Move otp required check to before action
      
      * Merge method only used once
      
      * Remove duplicate view
      
      * Consolidate creation of @codes for backup
      
      * Move settings/2fq#recovery_codes to settings/recovery_codes#create
      
      * Rename settings/two_factor_auth#disable to #destroy
      
      * Add coverage for the otp required path on 2fa#show
      
      * Clean up the recovery codes list styles
      
      * Move settings/two_factor_auth to settings/two_factor_authentication
      
      * Reorganize the settings two factor auth area
      
      Updated to use a flow like:
      
      - settings/two_factor_authentication goes to a #show view which has a button
        either enable or disable 2fa on the account
      - the disable button turns off the otp requirement for the user
      - the enable button cycles the user secret and redirects to a confirmation page
      - the confirmation page is a #new view which shows the QR code for user
      - that page posts to #create which verifies the code, and creates the recovery
        codes
      - that create action shares a view with a recovery codes controller which can be
        used separately to reset codes if needed
      67dea31b
    • Ashley's avatar
      Added API for single notification dismissal (#2251) · 05ac28f3
      Ashley authored
      * Added API backend for notification dismissal
      
      * Added render statement
      
      * Changed statement
      05ac28f3
  17. Apr 19, 2017
    • Matt Jankowski's avatar
      Restful refactor of accounts/ routes (#2133) · 8bac0350
      Matt Jankowski authored
      * Add routing specs for accounts followers and following actions
      
      * Use more restful route naming for public account follow pages
      
      Moves two actions:
      - accounts#followers to accounts/follower_accounts#index
      - accounts#following to accounts/following_accounts#index
      
      Adds routing spec to ensure prior URLs are preserved.
      8bac0350
  18. Apr 18, 2017
    • Matt Jankowski's avatar
      Instances list in admin (#2095) · 55e15035
      Matt Jankowski authored
      * Add admin/instances index action
      
      * Add link to instances admin page
      
      * View lists instances
      
      * Instances, grouped by domain, ordered by count
      
      * Use Account.remote scope
      
      * Extract method: Account.by_domain_accounts
      55e15035
  19. Apr 17, 2017
    • Matt Jankowski's avatar
      Improve handling of HTTP_ACCEPT for webfinger (#2008) · 21a767dc
      Matt Jankowski authored
      This change includes:
      
      - Improve the spec coverage for incoming request to the webfinger action
      - For requests without an accept header (ie, what a browser might look like),
        return a JSON response.
      - For requests with an explicit format of xml or json, return that format.
      - For requests using an accept header, return that format.
      
      Also adds failing spec showing webfinger does not return xml, which covers the
      issue described in: https://github.com/tootsuite/mastodon/issues/1983
      21a767dc
  20. 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
  21. Apr 15, 2017
    • Matt Jankowski's avatar
    • 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
  22. Apr 14, 2017
    • 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
  23. Apr 13, 2017
    • Matt Jankowski's avatar
      Clean up well-known routes/controllers (#1649) · 137100dc
      Matt Jankowski authored
      * Add request spec for host meta route returning xml
      
      * Add routing spec for xrd routes
      
      * Update well-known routes
      
      * Move webfinger and host-meta actions to their own controllers
      137100dc
    • Matt Jankowski's avatar
      Admin accounts controller cleanup (#1664) · 3a9eb81a
      Matt Jankowski authored
      * Remove unused account_params method in admin/accounts controller
      
      * Introduce AccountFilter to find accounts
      
      * Use AccountFilter in admin/accounts controller
      
      * Use more restful routes admin silence and suspension area
      
      * Add admin/silences and admin/suspensions controllers
      3a9eb81a
  24. Apr 12, 2017
  25. 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
  26. Apr 09, 2017
  27. Apr 08, 2017
  28. Apr 07, 2017
    • Eugen Rochko's avatar
      Allow setting of default language through config · e3a3422a
      Eugen Rochko authored
      Setting of locale in controller extracted to Localized concern,
      the doorkeeper authorized applications controller moved under
      custom namespace with inclusion of Localized, which resolves the
      "it sometimes appears in a different random language" bug
      e3a3422a
  29. Apr 03, 2017
  30. Mar 30, 2017
Loading