- Nov 17, 2017
-
-
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
-
ysksn authored
-
- Nov 16, 2017
- Nov 15, 2017
-
-
ysksn authored
* Move some tests of User into Settings::ScopedSettings * Add a test for User@settings
-
ysksn authored
-
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
-
ysksn authored
* Add tests for StreamEntry - `#object_type` - `#verb` - `#mentions` * Fix to test results instead of implementations
-
- Nov 14, 2017
-
-
Eugen Rochko authored
* Add option to block direct messages from people you don't follow Fix #5326 * If the DM responds to a toot by recipient, allow it through * i18n: Update Polish translation (for #5669) (#5673)
-
ysksn authored
-
Yamagishi Kazutoshi authored
-
Yamagishi Kazutoshi authored
-
ysksn authored
-
- Nov 13, 2017
-
-
ysksn authored
* Fabricate SessionActivation not only user_id but user association. * Add tests for SessionActivation
-
- Nov 12, 2017
-
-
ysksn authored
-
- Nov 10, 2017
-
-
ysksn authored
* Add tests for RemoteFollow.initialize * Add tests for RemoteFollow#valid? * Add tests for RemoteFollow#subscribe_address_for
-
- Nov 09, 2017
-
-
ysksn authored
* Add tests for Notification#target_status * Add tests for Notification#browserable? * Add tests for Notification.reload_stale_associations!
-
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.
-
Nanamachi authored
* make accounts_controller_spec DRY * Add blocked user spec
-
- Nov 08, 2017
- Nov 06, 2017
- Nov 05, 2017
-
-
ysksn authored
-
- Oct 26, 2017
-
-
unarist authored
Looks like copied tempfile need to be flushed before further processing. This issue won't happen if the uploaded file has enough file size.
-
- Oct 17, 2017
-
-
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.
-
- Oct 16, 2017
-
-
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
-
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.
-
Yamagishi Kazutoshi authored
-
- Oct 14, 2017
-
-
unarist authored
This allows deletion of reblogs which delivered before with OStatus URI.
-
- Oct 13, 2017
-
-
Eugen Rochko authored
-
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.
-
- Oct 09, 2017
-
-
Akihiko Odaki authored
-
- Oct 08, 2017
-
-
Eugen Rochko authored
- Rename Mastodon::TimestampIds into Mastodon::Snowflake for clarity - Skip for statuses coming from inbox, aka delivered in real-time - Skip for statuses that claim to be from the future
-
- Oct 07, 2017
-
-
nullkal authored
* Add moderation note * Add frozen_string_literal * Make rspec pass
-
Eugen Rochko authored
-
Eugen Rochko authored
* Encode custom emojis as resolveable objects in ActivityPub * Improve code style
-
Nolan Lawson authored
-
- Oct 06, 2017
-
-
Nolan Lawson authored
-
Nolan Lawson authored
-