mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-30 16:07:37 -05:00
Compare commits
3 Commits
a0.06
...
Trinity/fi
Author | SHA1 | Date | |
---|---|---|---|
0e0f04dd3d | |||
d3d1d56680 | |||
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"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -5,10 +5,10 @@
|
||||
"keywords": ["laravel", "framework"],
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": "^8.1",
|
||||
"php": "^8.2",
|
||||
"guzzlehttp/guzzle": "^7.2",
|
||||
"laravel/framework": "^10.10",
|
||||
"laravel/sanctum": "^3.2",
|
||||
"laravel/framework": "^11.0",
|
||||
"laravel/sanctum": "^4.0",
|
||||
"laravel/tinker": "^2.8",
|
||||
"revolution/laravel-mastodon-api": "^3.0"
|
||||
},
|
||||
@ -17,7 +17,7 @@
|
||||
"laravel/pint": "^1.0",
|
||||
"laravel/sail": "^1.18",
|
||||
"mockery/mockery": "^1.4.4",
|
||||
"nunomaduro/collision": "^7.0",
|
||||
"nunomaduro/collision": "^8.1",
|
||||
"phpunit/phpunit": "^10.1",
|
||||
"spatie/laravel-ignition": "^2.0"
|
||||
},
|
||||
|
1387
composer.lock
generated
1387
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -17,7 +17,9 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<script>
|
||||
0
|
||||
</script>
|
||||
<header>
|
||||
<div>
|
||||
<div class="header-left">
|
||||
|
@ -59,7 +59,7 @@
|
||||
<h3>CSV Exports</h3>
|
||||
For a list of the current locations being tracked, click on one of the links below to download a dynamically generated CSV file that can be consumed as a blocklist. More formats will be added over time.
|
||||
<br />
|
||||
<a href="/exports/mastodon">For Mastodon</a>
|
||||
<a href="/exports">For Mastodon</a>
|
||||
<h3>API</h3>
|
||||
The Bad Space has a public api that can be used to search the database programatically and return results in the JSON format. The API can be accsess at<br />
|
||||
<code>https://thebad.space/api/v1/search</code>
|
||||
|
Reference in New Issue
Block a user