Commit graph

315 commits

Author SHA1 Message Date
Claire
0e504e67f3 Add support for editing labelling of one's own role ()
Still disallow edition of rank or permissions
2022-07-17 13:37:30 +02:00
Eugen Rochko
38d04135bf Change how hashtags are normalized ()
* Change how hashtags are normalized

* Fix tests
2022-07-13 15:03:28 +02:00
Claire
16d11acb2b Fix various in the user role management UI ()
* Reword priority description

* Disable checkboxes for permissions you can't enable in role edition interface

* Set max priority in HTML attribute

* Explicitly link to role edition, do not link when you can't edit

* Reword priority description based on review
2022-07-07 18:18:23 +02:00
Claire
e22604d9c9 Fix incorrect param in role card link () 2022-07-05 20:01:50 +02:00
Eugen Rochko
e164d6a687 Add customizable user roles ()
* Add customizable user roles

* Various fixes and improvements

* Add migration for old settings and fix tootctl role management
2022-07-05 02:41:40 +02:00
Eugen Rochko
03d2cb5146 Change brand color and logotypes ()
- Add rake task for generating Apple/Android icons and favicons from SVG
- Add rake task for generating PNG icons and logos for e-mails from SVG
- Remove obsolete Microsoft icons and configuration
- Remove PWA shortcut icons
2022-06-09 22:25:23 +02:00
Eugen Rochko
0eb2db6b52 Add administrative webhooks ()
* Add administrative webhooks

* Fix error when webhook is deleted before delivery worker runs
2022-06-09 21:57:36 +02:00
Claire
da9eb6eda8 Fix error on attempting to delete an account moderation note ()
Fixes 
2022-04-29 20:25:31 +02:00
Claire
2c1843f37a Pre-fill domain block/allow domain from search filter () 2022-04-29 00:24:44 +02:00
Eugen Rochko
e3be46c743 Fix trends returning less results per page when filtered in REST API ()
- Change filtering and pagination to occur in SQL instead of Redis
- Change rank/score displayed on trends in admin UI to be locale-specific
2022-04-08 17:10:53 +02:00
Eugen Rochko
f982d56b4e Remove sign-in token authentication, instead send e-mail about new sign-in () 2022-04-06 20:58:12 +02:00
Claire
dfedf446fb Refactor account and status formatting ()
* Refactor status formatting

* Add account formatting helpers

* Remove StatusFormatter

* Fixup

* Fix copied typo
2022-03-28 01:17:17 +02:00
Eugen Rochko
5a7219e532 Refactor formatter ()
* Refactor formatter

* Move custom emoji pre-rendering logic to view helpers

* Move more methods out of Formatter

* Fix code style issues

* Remove Formatter

* Add inline poll options to RSS feeds

* Remove unused helper method

* Fix code style issues

* Various fixes and improvements

* Fix test
2022-03-26 02:53:34 +01:00
Eugen Rochko
89e3309153 Change how unconfirmed accounts are displayed in admin UI ()
Fix 
2022-03-26 02:53:13 +01:00
mayaeh
37c1fe7de1 Add a hashtag public link to the trending hashtag page ()
* Add a hashtag public link to the hashtag management page

* Add support for element 'target' to Counter.js.
Remove 'rel' element.

* Update app/javascript/mastodon/components/admin/Counter.js

Co-authored-by: Claire <claire.github-309c@sitedethib.com>

Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2022-03-26 02:52:51 +01:00
Jeong Arm
9a7605e979 Add stop delivery link also for failing instance () 2022-03-26 00:39:54 +01:00
Claire
236bc22945 Add tooltip for instance delivery warnings () 2022-03-22 18:41:46 +01:00
Eugen Rochko
43c6f1da0f Fix IDN domains not being rendered correctly in a few left-over places () 2022-03-22 10:07:11 +01:00
Gomasy
9b27b6023f Fix being unable to search by domain () 2022-03-21 04:45:58 +01:00
Claire
981cd24311 Fix “edited at” in public pages not being properly localized ()
Fixes 
2022-03-15 19:07:25 +01:00
Eugen Rochko
85b7406ad8 Fix individually approved/rejected statuses/links showing as pending review () 2022-03-15 07:51:55 +01:00
Eugen Rochko
ec22be2701 Fix not being able to upload GIF emojis in admin UI () 2022-03-14 05:45:22 +01:00
Eugen Rochko
bf39f3a038 Fix nil error when viewing suspended domain in admin UI () 2022-03-14 05:27:37 +01:00
Eugen Rochko
9c2275d15f Change how changes to media attachments are stored for edits ()
* Change how changes to media attachments are stored for edits

Fix not being able to re-order media attachments

* Fix not broadcasting updates when polls/media is changed through ActivityPub

* Various fixes and improvements

* Update app/models/report.rb

Co-authored-by: Claire <claire.github-309c@sitedethib.com>

* Add tracking of media attachment description changes

* Change poll in status edit to have a structure closer to the real one

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2022-03-09 09:06:17 +01:00
Eugen Rochko
11e848bf95 Change design of federation pages in admin UI ()
* Change design of federation pages in admin UI

* Fix query performance in instance media attachments measure

* Fix reblogs being included in instance languages dimension
2022-03-09 08:52:32 +01:00
Eugen Rochko
dc23b3aeef Add descriptions to trending features in admin UI () 2022-03-02 18:57:44 +01:00
Eugen Rochko
b25b703cce Add ability to mark statuses as sensitive from reports in admin UI ()
* Add ability to mark statuses as sensitive from reports in admin UI

* Allow mark as sensitive action on statuses with preview cards
2022-03-01 22:20:29 +01:00
Claire
2d5edf2090 Fix remote reports with comments revealing remote reporter ()
* Display username rather than display name in report comment

For consistency with report notes and appeals

* Fix remote reports with comments revealing remote reporter

* Display instance name in placeholder

* Make instance name in report comment a link to the federation admin page

* Normalize i18n file
2022-02-26 21:14:12 +01:00
Eugen Rochko
e6d2b07ec1 Add trending statuses ()
* Add trending statuses

* Fix dangling items with stale scores in localized sets

* Various fixes and improvements

- Change approve_all/reject_all to approve_accounts/reject_accounts
- Change Trends::Query methods to not mutate the original query
- Change Trends::Query#skip to offset
- Change follow recommendations to be refreshed in a transaction

* Add tests for trending statuses filtering behaviour

* Fix not applying filtering scope in controller
2022-02-25 00:34:14 +01:00
Eugen Rochko
ea5bf21a1d Change e-mail domain blocks to block IPs dynamically ()
* Change e-mail domain blocks to block IPs dynamically

* Update app/workers/scheduler/email_domain_block_refresh_scheduler.rb

Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>

* Update app/workers/scheduler/email_domain_block_refresh_scheduler.rb

Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>

Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
2022-02-24 17:28:23 +01:00
Eugen Rochko
8d4b0b255a Fix link colors in report and strike details () 2022-02-22 15:27:25 +01:00
Claire
488c4e1712 Change dasbhoard links for “new users” and “active users” ()
Make them filter for local accounts by default
2022-02-16 13:17:28 +01:00
Eugen Rochko
82f8d19424 Add appeals ()
* Add appeals

* Add ability to reject appeals and ability to browse pending appeals in admin UI

* Add strikes to account page in settings

* Various fixes and improvements

- Add separate notification setting for appeals, separate from reports
- Fix style of links in report/strike header
- Change approving an appeal to not restore statuses (due to federation complexities)
- Change style of successfully appealed strikes on account settings page
- Change account settings page to only show unappealed or recently appealed strikes

* Change appealed_at to overruled_at

* Fix missing method error
2022-02-14 21:27:53 +01:00
Jeong Arm
63c1a70f35 Enable domain purge button on suspended domains too ()
* Enable domain purge button on suspended domains too

* Change unless to if
2022-02-11 22:23:19 +01:00
Eugen Rochko
9b42aad433 Change actions in reports to require only one click () 2022-02-11 21:51:57 +01:00
Eugen Rochko
6732217dd0 Change languages to be listed under standard instead of native name in admin UI () 2022-02-09 04:15:38 +01:00
Eugen Rochko
d979087a98 Fix localization of cold-start follow recommendations () 2022-02-08 01:53:49 +01:00
Eugen Rochko
25d1195a04 Fix error on account relationships page in admin UI () 2022-02-05 05:06:34 +01:00
Claire
68a9057420 Add post edited notice in admin and public UIs ()
* Add edited toot flag on public pages

* Add toot edit flag to admin pages
2022-01-20 13:37:31 +01:00
Eugen Rochko
2fb76550a9 Add notifications for statuses deleted by moderators () 2022-01-17 09:41:33 +01:00
Eugen Rochko
7b3972c270 Remove IP tracking columns from users table () 2022-01-16 13:23:50 +01:00
Claire
d8da1689c1 Add ability for admins to delete canonical email blocks ()
* Add admin option to remove canonical email blocks from a deleted account

* Add tootctl canonical_email_blocks to inspect and remove canonical email blocks
2021-12-17 23:02:14 +01:00
Claire
44c8b6ff2f Add ability to purge undeliverable domains from admin interface ()
* Add ability to purge undeliverable domains from admin interface

* Add tests
2021-12-17 23:01:21 +01:00
Eugen Rochko
7bf5924339 Add batch suspend for accounts in admin UI () 2021-12-05 21:48:39 +01:00
Eugen Rochko
4375813ea7 Remove Keybase integration () 2021-11-26 05:58:18 +01:00
Eugen Rochko
6c1d78b277 Fix error on trending hashtags/links pages in admin UI due to missing constant () 2021-11-26 01:12:39 +01:00
Eugen Rochko
ad73becf3e Add trending links ()
* Add trending links

* Add overriding specific links trendability

* Add link type to preview cards and only trend articles

Change trends review notifications from being sent every 5 minutes to being sent every 2 hours

Change threshold from 5 unique accounts to 15 unique accounts

* Fix tests
2021-11-25 13:07:38 +01:00
Eugen Rochko
cad446611c Add graphs and retention metrics to admin dashboard () 2021-10-14 20:44:59 +02:00
Eugen Rochko
2bc9e256cc Add ability to filter reports by origin of target account () 2021-07-11 11:01:38 +02:00
Eugen Rochko
34dd743b58 Add ability to skip sign-in token authentication for specific users ()
Remove "active within last two weeks" exception for sign in token requirement

Change admin reset password to lock access until the password is reset
2021-07-08 05:31:28 +02:00