mirror of
https://github.com/friendica/friendica
synced 2025-05-13 01:04:14 +02:00
Added permission check
This commit is contained in:
parent
e199abc837
commit
c01ca1583c
2 changed files with 7 additions and 5 deletions
|
@ -79,7 +79,7 @@ class Status extends BaseFactory
|
|||
'thr-parent-id', 'parent-author-id', 'language', 'uri', 'plink', 'private', 'vid', 'gravity'];
|
||||
$item = Post::selectFirst($fields, ['uri-id' => $uriId, 'uid' => [0, $uid]], ['order' => ['uid' => true]]);
|
||||
if (!$item) {
|
||||
throw new HTTPException\NotFoundException('Item with URI ID ' . $uriId . 'not found' . ($uid ? ' for user ' . $uid : '.'));
|
||||
throw new HTTPException\NotFoundException('Item with URI ID ' . $uriId . ' not found' . ($uid ? ' for user ' . $uid : '.'));
|
||||
}
|
||||
|
||||
$account = $this->mstdnAccountFactory->createFromContactId($item['author-id']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue