Update ApiController, fix notification bug

This commit is contained in:
Daniel Supernault 2021-07-21 02:16:20 -06:00
parent aa5b090af8
commit f39f32c866
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
3 changed files with 12 additions and 8 deletions

View file

@ -241,13 +241,13 @@ class SettingsController extends Controller
if($top) {
Redis::zadd('pf:tl:top', $pid, $pid);
} else {
Redis::zrem('pf:tl:top', $pid, $pid);
Redis::zrem('pf:tl:top', $pid);
}
if($replies) {
Redis::zadd('pf:tl:replies', $pid, $pid);
} else {
Redis::zrem('pf:tl:replies', $pid, $pid);
Redis::zrem('pf:tl:replies', $pid);
}
return redirect(route('settings.timeline'));
}