Edit severity display for Mastodon CSV
Severity rating was being set as 'defederate' which is not a status in Masto's blocklist import scheme, so it was changed to 'suspend' for better compatibility.
This commit is contained in:
parent
7c5ef7fb0e
commit
56758f094f
1 changed files with 5 additions and 1 deletions
|
@ -19,7 +19,11 @@ class HandleExports
|
|||
$records = [['domain', 'severity', 'public_comment', 'reject_media', 'reject_reports', 'obfuscate']];
|
||||
$entries = $this->locations->getActiveLocations();
|
||||
foreach ($entries as $entry) {
|
||||
$item = [$entry->getUrl(), $entry->getRating(), $entry->getDescription(), "FALSE", "FALSE", "FALSE"];
|
||||
$rating = $entry->getRating();
|
||||
if ($rating == "defederate") {
|
||||
$rating = "suspend";
|
||||
}
|
||||
$item = [$entry->getUrl(), $rating, $entry->getDescription(), "FALSE", "FALSE", "FALSE"];
|
||||
array_push($records, $item);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue