mirror of
https://github.com/friendica/friendica
synced 2025-05-13 13:44:11 +02:00
Check for URI ID existence in Post\Media::insert
- Address https://github.com/friendica/friendica/issues/12486#issuecomment-1374538325
This commit is contained in:
parent
4d5d8e5b64
commit
b77f3a7525
2 changed files with 16 additions and 0 deletions
|
@ -81,4 +81,14 @@ class ItemURI
|
|||
|
||||
return $itemuri['id'] ?? 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $uriId
|
||||
* @return bool
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function exists(int $uriId): bool
|
||||
{
|
||||
return DBA::exists('item-uri', ['id' => $uriId]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue