mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-05-06 14:41:02 -05:00
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
c7fecca9d2
commit
7ff2def5a6
@ -19,7 +19,11 @@ class HandleExports
|
|||||||
$records = [['domain', 'severity', 'public_comment', 'reject_media', 'reject_reports', 'obfuscate']];
|
$records = [['domain', 'severity', 'public_comment', 'reject_media', 'reject_reports', 'obfuscate']];
|
||||||
$entries = $this->locations->getActiveLocations();
|
$entries = $this->locations->getActiveLocations();
|
||||||
foreach ($entries as $entry) {
|
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);
|
array_push($records, $item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user