Skip to content
Snippets Groups Projects
  1. Nov 17, 2017
    • Eugen Rochko's avatar
      Lists (#5703) · 24cafd73
      Eugen Rochko authored
      * Add structure for lists
      
      * Add list timeline streaming API
      
      * Add list APIs, bind list-account relation to follow relation
      
      * Add API for adding/removing accounts from lists
      
      * Add pagination to lists API
      
      * Add pagination to list accounts API
      
      * Adjust scopes for new APIs
      
      - Creating and modifying lists merely requires "write" scope
      - Fetching information about lists merely requires "read" scope
      
      * Add test for wrong user context on list timeline
      
      * Clean up tests
      Unverified
      24cafd73
    • ysksn's avatar
      Remove empty strings (#5732) · 9dd5e329
      ysksn authored
      9dd5e329
  2. Nov 16, 2017
  3. Nov 15, 2017
    • ysksn's avatar
      Delegate some methods of User to @settings (#5706) · 19e8b861
      ysksn authored
      * Move some tests of User into Settings::ScopedSettings
      
      * Add a test for User@settings
      19e8b861
    • ysksn's avatar
      Add a test for Tag#to_param (#5705) · 7d7df877
      ysksn authored
      7d7df877
    • Surinna Curtis's avatar
      Optional notification muting (#5087) · 031a5a8f
      Surinna Curtis authored
      * Add a hide_notifications column to mutes
      
      * Add muting_notifications? and a notifications argument to mute!
      
      * block notifications in notify_service from hard muted accounts
      
      * Add specs for how mute! interacts with muting_notifications?
      
      * specs testing that hide_notifications in mutes actually hides notifications
      
      * Add support for muting notifications in MuteService
      
      * API support for muting notifications (and specs)
      
      * Less gross passing of notifications flag
      
      * Break out a separate mute modal with a hide-notifications checkbox.
      
      * Convert profile header mute to use mute modal
      
      * Satisfy eslint.
      
      * specs for MuteService notifications params
      
      * add trailing newlines to files for Pork :)
      
      * Put the label for the hide notifications checkbox in a label element.
      
      * Add a /api/v1/mutes/details route that just returns the array of mutes.
      
      * Define a serializer for /api/v1/mutes/details
      
      * Add more specs for the /api/v1/mutes/details endpoint
      
      * Expose whether a mute hides notifications in the api/v1/relationships endpoint
      
      * Show whether muted users' notifications are muted in account lists
      
      * Allow modifying the hide_notifications of a mute with the /api/v1/accounts/:id/mute endpoint
      
      * make the hide/unhide notifications buttons work
      
      * satisfy eslint
      
      * In probably dead code, replace a dispatch of muteAccount that was skipping the modal with launching the mute modal.
      
      * fix a missing import
      
      * add an explanatory comment to AccountInteractions
      
      * Refactor handling of default params for muting to make code cleaner
      
      * minor code style fixes oops
      
      * Fixed a typo that was breaking the account mute API endpoint
      
      * Apply white-space: nowrap to account relationships icons
      
      * Fix code style issues
      
      * Remove superfluous blank line
      
      * Rename /api/v1/mutes/details -> /api/v2/mutes
      
      * Don't serialize "account" in MuteSerializer
      
      Doing so is somewhat unnecessary since it's always the current user's account.
      
      * Fix wrong variable name in api/v2/mutes
      
      * Use Toggle in place of checkbox in the mute modal.
      
      * Make the Toggle in the mute modal look better
      
      * Code style changes in specs and removed an extra space
      
      * Code review suggestions from akihikodaki
      
      Also fixed a syntax error in tests for AccountInteractions.
      
      * Make AddHideNotificationsToMute Concurrent
      
      It's not clear how much this will benefit instances in practice, as the
      number of mutes tends to be pretty small, but this should prevent any
      blocking migrations nonetheless.
      
      * Fix up migration things
      
      * Remove /api/v2/mutes
      031a5a8f
    • ysksn's avatar
      Add tests for StreamEntry (#5687) · 6d7e05ec
      ysksn authored
      * Add tests for StreamEntry
      
      - `#object_type`
      - `#verb`
      - `#mentions`
      
      * Fix to test results instead of implementations
      6d7e05ec
  4. Nov 14, 2017
  5. Nov 13, 2017
  6. Nov 12, 2017
  7. Nov 10, 2017
    • ysksn's avatar
      Add tests for RemoteFollow (#5651) · 56720ba5
      ysksn authored
      * Add tests for RemoteFollow.initialize
      
      * Add tests for RemoteFollow#valid?
      
      * Add tests for RemoteFollow#subscribe_address_for
      56720ba5
  8. Nov 09, 2017
    • ysksn's avatar
      Add tests for Notification (#5640) · 07cca6e3
      ysksn authored
      * Add tests for Notification#target_status
      
      * Add tests for Notification#browserable?
      
      * Add tests for Notification.reload_stale_associations!
      07cca6e3
    • ysksn's avatar
      Add and Remove tests for FollowRequest (#5622) · 54b42901
      ysksn authored
      * Add a test for FollowRequest#authorize!
      
      * Remove tests
      
      There is no need to test
      ActiveModel::Validations::ClassMethods#validates.
      
      * Make an alias of destroy! as reject!
      
      Instead of defining the method,
      make an alias of destroy! as reject! because of reducing test.
      54b42901
    • Nanamachi's avatar
      Rewrite account_controller_spec (#5633) · d200e041
      Nanamachi authored
      * make accounts_controller_spec DRY
      
      * Add blocked user spec
      d200e041
  9. Nov 08, 2017
  10. Nov 06, 2017
  11. Nov 05, 2017
  12. Oct 26, 2017
  13. Oct 17, 2017
    • aschmitz's avatar
      Clean up reblog tracking keys, related improvements (#5428) · 554c2fd8
      aschmitz authored
      * Clean up reblog-tracking sets from FeedManager
      
      Builds on #5419, with a few minor optimizations and cleanup of sets
      after they are no longer needed.
      
      * Update tests, fix multiply-reblogged case
      
      Previously, we would have lost the fact that a given status was
      reblogged if the displayed reblog of it was removed, now we don't.
      
      Also added tests to make sure FeedManager#trim cleans up our reblog
      tracking keys, fixed up FeedCleanupScheduler to use the right loop,
      and fixed the test for it.
      554c2fd8
  14. Oct 16, 2017
    • Eugen Rochko's avatar
      Keep references to all reblogs of a status on home feed (#5419) · 34118169
      Eugen Rochko authored
      * Keep references to all reblogs of a status on home feed
      
      When inserting reblog: Add to set of reblogs of this status on
      the feed, if original status was present in the feed, add it to
      that set as well.
      
      When removing a reblog: Remove it from that set. Take random
      remaining item from the set. If one exists, re-insert it into feed,
      otherwise do not re-insert anything.
      
      Fix #4210
      
      * When original is removed, toss out reblog references
      34118169
    • unarist's avatar
      Fix un-reblogged status being at wrong position in the home timeline (#5418) · 6f490b4b
      unarist authored
      We've changed un-reblogging behavior when we implement Snowflake, to insert un-reblogged status at the position reblogging status existed.
      
      However, our API expects home timeline is ordered by status ids, and max_id/since_id filters by zset score. Due to this, un-reblogged status appears as a last item of result set, and timeline expansion may skips many statuses.
      
      So this reverts that change...reblogged status inserted at corresponding position to its id.
      6f490b4b
    • Yamagishi Kazutoshi's avatar
  15. Oct 14, 2017
  16. Oct 13, 2017
    • Eugen Rochko's avatar
      3283868e
    • Lex Alexander's avatar
      Retoot count increases without reason (#5363) · b8bae966
      Lex Alexander authored
      * Retoot count increases without reason
      
      -The store_uri method for Statuses was being called on after_create and causing reblogs to be incremented twice.
      -This calls it when the transaction is finished by using after_create_commit.
      -Fixes #4916.
      
      * Added test case for after_create_commit callback for checking reblog count.
      
      * Rewrote test to keep original, but added one for only the after_create_commit callback.
      b8bae966
  17. Oct 09, 2017
  18. Oct 08, 2017
  19. Oct 07, 2017
  20. Oct 06, 2017
Loading