Update Autospam service, use silent classification for better user experience

pull/2981/head
Daniel Supernault 2021-10-19 23:13:12 -06:00
rodzic 64c75bdaec
commit f0d4c17236
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -132,11 +132,11 @@ class Bouncer {
$status->scope = 'unlisted';
$status->visibility = 'unlisted';
$status->is_nsfw = true;
// $status->is_nsfw = true;
$status->save();
Cache::forget('pf:bouncer_v0:exemption_by_pid:' . $status->profile_id);
Cache::forget('pf:bouncer_v0:recent_by_pid:' . $status->profile_id);
}
}
}

Wyświetl plik

@ -2,7 +2,7 @@
use Illuminate\Http\Request;
$middleware = ['auth:api','twofactor','validemail','interstitial'];
$middleware = ['auth:api','twofactor','validemail'];
Route::post('/f/inbox', 'FederationController@sharedInbox');
Route::post('/users/{username}/inbox', 'FederationController@userInbox');

Wyświetl plik

@ -84,7 +84,7 @@ Route::domain(config('pixelfed.domain.admin'))->prefix('i/admin')->group(functio
Route::post('diagnostics/decrypt', 'AdminController@diagnosticsDecrypt')->name('admin.diagnostics.decrypt');
});
Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofactor', 'localization','interstitial'])->group(function () {
Route::domain(config('pixelfed.domain.app'))->middleware(['validemail', 'twofactor', 'localization'])->group(function () {
Route::get('/', 'SiteController@home')->name('timeline.personal');
Route::post('/', 'StatusController@store');