Update ApiController, fix notification bug
This commit is contained in:
parent
aa5b090af8
commit
f39f32c866
3 changed files with 12 additions and 8 deletions
|
@ -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'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue