- May 11, 2017
-
-
Jack Jennings authored
-
- May 08, 2017
-
-
Matt Jankowski authored
* Dont allow empty value in user allowed languages * Sanitize language input to reject blank values in array
-
- May 06, 2017
-
-
Matt Jankowski authored
* Add coverage for stream entry delegated methods * Use delegate with allow_nil to clean up stream entry
-
- May 05, 2017
-
-
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
-
masarakki authored
-
- May 02, 2017
-
-
Kaylee authored
* Add option to disable two factor auth in admin accounts panel. Closes #2578 * Add @mjankowski's suggestions. * Moves destroy actions behind User#disable_two_factor! * Adds spec coverage for Admin:TwoFactorAuthenticationsController and User#disable_two_factor!
-
Yamagishi Kazutoshi authored
* Fix subscription expiration condition * dry and add spec
-
- May 01, 2017
-
-
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
-
- Apr 30, 2017
-
-
Matt Jankowski authored
* Add coverage for Report#media_attachments * Direct query on media attachment
-
Akihiko Odaki authored
This reverts commit 5135d609.
-
- Apr 29, 2017
-
-
Akihiko Odaki authored
-
- Apr 28, 2017
-
-
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).
-
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
-
- Apr 26, 2017
-
-
Matt Jankowski authored
-
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
-
- Apr 25, 2017
-
-
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
-
- Apr 24, 2017
-
-
Eugen authored
-
- Apr 23, 2017
-
-
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.
-
- Apr 21, 2017
-
-
Matt Jankowski authored
* Add user spec for settings, highlight global default mutation issue * Fix mutation issue caused by settings/preferences spec
-
- Apr 19, 2017
-
- Apr 18, 2017
-
-
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
-
Matt Jankowski authored
* Add a ReportFilter class * Add reports and targeted_reports relationships to Account * Use ReportFilter from admin/reports controller * Link to admin/reports filtered views from admin account show view * Add indexes to reports.account_id and reports.target_account_id
-
- Apr 17, 2017
-
-
Matt Jankowski authored
* Remove unused method #set_counters_maps from api controller * Remove unused method #set_account_counters_maps from api controller * Remove unused method Account#followers_domains * Remove unused User.prolific scope * Add mastodon:users:admins task to list all admin emails * Use interpolated query style in Account.triadic_closures * Coverage for Account.triadic_closures
-
- Apr 15, 2017
-
-
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
-
- Apr 14, 2017
-
-
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
-
- Apr 13, 2017
-
-
Matt Jankowski authored
-
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
-
Matt Jankowski authored
* Remote spec for non-existent entry_classes helper method This method no longer exists, and is handled by a local variable in a partial instead. * Remove spec for non-existent Account#ping! method
-
- Apr 11, 2017
-
-
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
-
- Apr 10, 2017
-
-
Eugen authored
* When avatar/header are GIF, generate static versions. Account API returns "avatar"/"avatar_static", "header"/"header_static" Static version is the same as original for other cases Web UI de-animates avatars in toots, lists of users Fix #441, fix #596, prerequisite for #1064 * Fix JS test * Add rake task to generate static avatars/headers from GIF ones, add test
-
Matt Jankowski authored
* Consolidate webfinger string creation under Account#to_webfinger_s * Introduce Account#local_username_and_domain for consolidation
-
- Apr 09, 2017
-
-
Matt Jankowski authored
* Clean up SQL output in Tag and Account search methods * Add basic coverage for Tag.search_for * Add coverage for Account.search_for * Add coverage for Account.advanced_search_for
-
- Apr 07, 2017
-
-
Joël Quenneville authored
Implement the two pending specs on `Status`: `reblogs_count` and `favourites_count`.
-
Joël Quenneville authored
Checking reblog vs original status was happening in multiple places across the app. For views, this logic was encapsulated in a helper method named `proper_status` but in the other layers of the app, the logic was duplicated. Because the logic is used at all layers of the app, we extracted it into a `Status#proper` method on the model and changed all uses of the logic to use this method. There is now a single source of truth for this condition. We added test coverage to untested methods that got refactored.
-
- Apr 05, 2017
-
-
Eugen Rochko authored
-
- Apr 04, 2017
-
-
Samy KACIMI authored
-
Samy KACIMI authored
-
Pete Keen authored
This adds the ability to filter user signup with a whitelist instead of or in addition to a blacklist. Fixes #817
-
- Mar 30, 2017
-
-
Eugen Rochko authored
-
- Mar 05, 2017
-
-
Eugen Rochko authored
Fix anchor tags in some wikipedia URLs being matches as a hashtag
-