Update Autospam service, use silent classification for better user experience

This commit is contained in:
Daniel Supernault 2021-10-19 23:13:12 -06:00
parent 64c75bdaec
commit f0d4c17236
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
3 changed files with 4 additions and 4 deletions

View file

@ -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);
}
}
}

View file

@ -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');

View file

@ -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');