Commit Graph

49 Commits (28d292047207231631ed8a42257eff129c018868)

Author SHA1 Message Date
Matt Jankowski 2212dc4aaa Update Rails to version 5.1.1 ()
* Update rails to version 5.1.1

* Run `rails app:update`

* Remove the override of polymorphic activity relationship

* Silence warning about otp_secret attribute being unknown to rails

* We will only introduce form_with where we want to use remote data
Akihiko Odaki 7db98aa70e Refactor User and spec ()
* Protect send_devise_notification of User

* Improve spec for User
Atsushi Yamamoto 402c19a924 Add preference setting for delete toot modal ()
* Set delete_modal preference to true by default
* Does not show confirmation modal if delete_modal is false
* Add ja translation for preference setting page
Matt Jankowski e1b42e9aa0 Add coverage for ReportFilter and AccountFilter ()
Matt Jankowski ec34ec63b1 Specs for cleanup workers ()
* Add spec files for feed and media cleanup workers

* Add coverage for feed and media cleanup schedulers

* Clean up feed and media cleanup workers
Matt Jankowski 8f4b7c1820 Filter languages with opt out ()
* Remove allowed_languages and add filtered_languages

* Use filtered_languages instead of allowed_languages
Matt Jankowski 6e4c7d6211 Conditional validations no longer accept strings for if/unless ()
alpaca-tc 09ec6e504b Order by symbol value ()
Matt Jankowski bba537a7be Improve allowed language handling ()
* Dont allow empty value in user allowed languages

* Sanitize language input to reject blank values in array
Kaylee 7880671f35 Add option to disable two factor auth in admin accounts panel. ()
* Add option to disable two factor auth in admin accounts panel.
Closes 

* Add @mjankowski's suggestions.
* Moves destroy actions behind User#disable_two_factor!
* Adds spec coverage for Admin:TwoFactorAuthenticationsController and User#disable_two_factor!
yhirano 298796cc7b annotate models ()
* add annotate to Gemfile

* rails g annotate:install

* configure annotate_models

* add schema info to models

* fix rubocop to add frozen_string_literal
Ash Furrow 723f25a999 Admin UI for confirming users ()
* Shows confirmed status in list.

* Adds ability to confirm users in admin UI.

* Added new english translations.

* Addresses feedback from .

* More feedback.
Eugen Rochko 57d784f1e4 Merge branch 'pause-gif' of git://github.com/patf/mastodon into patf-pause-gif
Matt Jankowski 16d50f60d1 Remove unused methods ()
* 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
alpaca-tc 630de52fdd Required foreign keys ()
* Add `required: true` option to foreign column

* Fixes NoMethodError

```
> Favourite.new.valid?
NoMethodError: undefined method `reblog?' for nil:NilClass
```
Patrick Figel ffb99325ca Add gif auto-play/pause preference
This introduces a new per-user preference called
"Auto-play animated GIFs", which is enabled by default. When a
user disables this setting, gifs in toots become click-to-play.

Previews of animated gifs were changed to display the video play
button so that users can distinguish them from regular images.

This setting also affects account avatars in the detailed account
view, which was changed to use the same hover-to-play mechanism
that is used for animated avatars in timelines.

Fixes 
Patrick Figel df4ff9a8e1 Add recovery code support for two-factor auth ()
* 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  and fixes 

* Set OTP_SECRET in test enviroment

* add missing .html to view file names
blackle 06444bf050 Allow user to disable the boost confirm dialog in preferences
Eugen Rochko 6b81d10030 Add digest e-mails
Eugen Rochko 347a153b3d Add API modifiers to limit returned toots from public/hashtag timelines
to only those from local users; Add link to "extended information" to
getting started in the UI; Add defaults for posting privacy; Change
how publish button looks depending on posting privacy chosen
Eugen Rochko ba192f12e3 Added optional two-factor authentication
Eugen Rochko 2939e9898b Extend rails-settings-cached to merge db-saved hash values with defaults
Eugen Rochko b11fdc3ae3 Migrate from ledermann/rails-settings to rails-settings-cached which allows global settings
with YAML-defined defaults. Add admin page for editing global settings. Add "site_description"
setting that would show as a paragraph on the frontpage
Eugen Rochko 2146ac91a0 Follow requests send e-mail notifications, but are excluded from notifications API
Better initial state for unlisted/nsfw toggles
Eugen Rochko b362de2232 Adding configurable e-mail blacklist
Eugen Rochko 71401659b8 Fix - Options to block notifications from people you don't follow/who don't follow you
Eugen Rochko 9b53c7d353 Fix - Turn off e-mail notifications by default
Eugen Rochko 45c7ee39b3 Remove unneeded indices, improve error handling in background workers, don't needlessly reload reblogged status, send Devise e-mails asynchronously
Eugen Rochko 2c766bd4b4 Add user locale setting
Eugen Rochko fdc17bea58 Fix rubocop issues, introduce usage of frozen literal to improve performance
Eugen Rochko 62292797ec Adding hashtag model
Eugen Rochko 06016453bd Adding user settings (model and mailer), no form yet
Eugen Rochko fc198a8b4c Adding e-mail confirmations
Eugen Rochko b3c7c8700d Fix most pages on small screens
Eugen Rochko 188c6f326b Making public pages responsive, removing reblogs/favs counts from them
Eugen Rochko 927333f4f8 Improve code style
Eugen Rochko 15f51dbf8c Better styling for selected status in detailed view
Eugen Rochko 1215ab57ff Some extra scopes for user sorting
Eugen Rochko 10ba09f546 Upgrade to Rails 5.0.0.1
Eugen Rochko ff2cbc0753 Remember me enabled by default
Eugen Rochko da4b675aca Fix favourite handling in ProcessInteractionService
Eugen Rochko e24bfbde1a Fixing FanOutOnWriteService, fixing Sidekiq not having enough DB connections
in the pool, adding a throttle of 60rpm per IP, adding mini profiler, adding
admin status to users
Eugen Rochko 6fec8afc3f Bind oauth applications to users
Eugen Rochko 6045b6cb18 Customizing devise views and controllers
Eugen Rochko 7e93da3f8d Removing grape and adding devise
Eugen Rochko 0e8f59c16f Refactoring Grape API methods into normal controllers & other things
Eugen Rochko 24646d5769 Adding views for the profile and entry pages
Eugen Rochko 1dad72bf13 Fixes and general progress
Eugen Rochko 709c6685a9 Made some progress