mirror of
https://github.com/WerySkok/nativegallery.git
synced 2024-12-23 09:01:03 +03:00
14 lines
300 B
PHP
14 lines
300 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Controllers\Api\Images;
|
||
|
use \App\Services\{Auth, DB};
|
||
|
|
||
|
class CheckAll {
|
||
|
|
||
|
public function __construct() {
|
||
|
DB::query('UPDATE followers_notifications SET checked=1 WHERE follower_id=:id', array(':id'=>Auth::userid()));
|
||
|
header('Location: /fav_authors');
|
||
|
}
|
||
|
}
|
||
|
?>
|