Commit Graph

20 Commits (bfa12239e84ebe310d74ef0e773d90a477b3cf8f)

Author SHA1 Message Date
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