mirror of
https://github.com/friendica/friendica
synced 2025-05-19 07:44:11 +02:00
old boot.php functions replaced in src/module (2)
This commit is contained in:
parent
b36d4eb0dd
commit
c9f17e1ef5
21 changed files with 102 additions and 88 deletions
|
@ -55,10 +55,10 @@ class Ignore extends BaseModule
|
|||
throw new HTTPException\NotFoundException();
|
||||
}
|
||||
|
||||
$ignored = !Post\ThreadUser::getIgnored($thread['uri-id'], local_user());
|
||||
$ignored = !Post\ThreadUser::getIgnored($thread['uri-id'], Session::getLocalUser());
|
||||
|
||||
if (in_array($thread['uid'], [0, local_user()])) {
|
||||
Post\ThreadUser::setIgnored($thread['uri-id'], local_user(), $ignored);
|
||||
if (in_array($thread['uid'], [0, Session::getLocalUser()])) {
|
||||
Post\ThreadUser::setIgnored($thread['uri-id'], Session::getLocalUser(), $ignored);
|
||||
} else {
|
||||
throw new HTTPException\BadRequestException();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue