Commit Graph

26 Commits (b01f26ffbd7cf1ca42a6a16798c1f10e56a8e82e)

Author SHA1 Message Date
Eugen Rochko 6e49907ecf
Improve admin UI for account view ()
ThibG 4423999609 Fix account unsilencing and unsuspension ()
Fix regression from 3c033c4352
Eugen Rochko 3c033c4352
Add moderation warnings ()
* Add moderation warnings

Replace individual routes for disabling, silencing, and suspending
a user, as well as the report update route, with a unified account
action controller that allows you to select an action (none,
disable, silence, suspend) as well as whether it should generate an
e-mail notification with optional custom text. That notification,
with the optional custom text, is saved as a warning.

Additionally, there are warning presets you can configure to save
time when performing the above.

* Use Account#local_username_and_domain
ThibG cf6ee4ff24 Add admin ability to remove an user's header image ()
* Fix markup in admin/accounts/:id table for avatar

* Add admin ability to remove an user's header image
Eugen Rochko 73faadad28
Redesign admin accounts index ()
* Improve overview of accounts in admin UI

- Display suspended status, role, last activity and IP prominently
- Default to showing local accounts
- Default to not showing suspended accounts

* Remove unused strings

* Fix tests

* Allow filtering accounts by IP mask
Eugen Rochko e645ae9561
Change admin accounts default sort to most recent ()
Emelia Smith e7a1716701 Implement the ability for an Administrator or Moderator to remove an account avatar ()
Eugen Rochko 20a6584d2d
Clean up admin UI for accounts ()
* Add staff filter to admin UI for accounts, remove obsolete columns

* Only display OStatus section in admin UI for accounts when OStatus data
Eugen Rochko e84fecb7e9
Add logging of admin actions ()
* Add logging of admin actions

* Update brakeman whitelist

* Log creates, updates and destroys with history of changes

* i18n: Update Polish translation ()

Signed-off-by: Marcin Mikołajczak <me@m4sk.in>

* Split admin navigation into moderation and administration

* Redesign audit log page

* 🇵🇱 ()

* Add color coding to audit log

* Change dismiss->resolve, log all outcomes of report as resolve

* Update terminology (e-mail blacklist) ()

* Update terminology (e-mail blacklist)

imho looks better

* Update en.yml

* Fix code style issues

* i18n-tasks normalize
Eugen Rochko 7bb8b0b2fc
Add moderator role and add pundit policies for admin actions ()
* Add moderator role and add pundit policies for admin actions

* Add rake task for turning user into mod and revoking it again

* Fix handling of unauthorized exception

* Deliver new report e-mails to staff, not just admins

* Add promote/demote to admin UI, hide some actions conditionally

* Fix unused i18n
Eugen Rochko 1032f3994f
Add ability to disable login and mark accounts as memorial ()
Fix 
nullkal 633426b261 Add moderation note ()
* Add moderation note

* Add frozen_string_literal

* Make rspec pass
Eugen Rochko 6e9eda5331 ActivityPub migration procedure ()
* ActivityPub migration procedure

Once one account is detected as going from OStatus to ActivityPub,
invalidate WebFinger cache for other accounts from the same domain

* Unsubscribe from PuSH updates once we receive an ActivityPub payload

* Re-subscribe to PuSH unless already unsubscribed, regardless of protocol
Eugen Rochko e6c81a635b Fix - Rake task to redownload avatars/headers ()
Can be filtered by a specific domain
Resolves 
Eugen Rochko 8902e265b4 Add explit admin actions to (re)subscribe/unsubscribe remote accounts ()
* Add explit admin actions to (re)subscribe/unsubscribe remote accounts
and re-download avatar/header

* Improve how admin NSFW toggle looks
alpaca-tc e89e4355eb Add filter to AccountFilter ()
Matt Jankowski 3a9eb81a80 Admin accounts controller cleanup ()
* 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 4ada50985a Pagination improvements ()
* Replace will_paginate with kaminari

* Use #page instead of #paginate in controllers

* Replace will_paginate.page_gap with pagination.truncate in i18n

* Customize kaminari views to match prior styles

* Set kaminari options to match prior behavior

* Replace will_paginate with paginate in views
Matt Jankowski dbe9f33fdc Admin base controller ()
* Add Admin::BaseController to wrap admin area

Extracts the setting of the `admin` layout and verifying that users are admins
to a common base class for the admin/ controllers.

* Add basic coverage for admin/reports and admin/settings controllers
Eugen Rochko 5426f06ac2 Fix admin UI for accounts somewhat
Eugen Rochko 76ec907993 Improved admin UI
Eugen Rochko f978b06dd1 Add suspend account functionality to admin UI
Eugen Rochko 39cc9fde8a Add account suspension
Eugen Rochko 9d9f796130 Adding more to admin accounts UI
Eugen Rochko ec44cff9a2 Admin accounts page lists accounts
Eugen Rochko 356d3874eb Normalize localizations, add stub for admin/accounts