Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
ro | 0a02a71983 |
|
@ -46,12 +46,12 @@ class ExportController extends Controller
|
|||
$sources = Source::where("active", true)->get();
|
||||
if ($type == 'mastodon') {
|
||||
$columns = [
|
||||
'domain',
|
||||
'severity',
|
||||
'public_comment',
|
||||
'reject_media',
|
||||
'reject_reports',
|
||||
'obfuscate',
|
||||
'#domain',
|
||||
'#severity',
|
||||
'#public_comment',
|
||||
'#reject_media',
|
||||
'#reject_reports',
|
||||
'#obfuscate',
|
||||
];
|
||||
};
|
||||
|
||||
|
@ -65,8 +65,13 @@ class ExportController extends Controller
|
|||
//remove extra white space
|
||||
$comments = str_replace(["\n\r", "\n", "\r"], " ", $comments);
|
||||
$comments = str_replace(['"', "'"], "", $comments);
|
||||
if ($location->rating == 'defederate') {
|
||||
$rating = 'suspend';
|
||||
} else {
|
||||
$rating = $location->rating;
|
||||
}
|
||||
//add to the export list
|
||||
array_push($list, [$location->url, $location->rating, $comments, "FALSE", "FALSE", "FALSE"]);
|
||||
array_push($list, [$location->url, $rating, $comments, "FALSE", "FALSE", "FALSE"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue