mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
Use the Item class instead of DBA calls when possible (#705)
This commit is contained in:
parent
fd1eed17ab
commit
28b699573c
3 changed files with 11 additions and 17 deletions
|
@ -1079,7 +1079,7 @@ function statusnet_createpost(App $a, $uid, $post, $self, $create_user, $only_ex
|
|||
|
||||
$postarray['uri'] = $hostname . "::" . $content->id;
|
||||
|
||||
if (DBA::exists('item', ['extid' => $postarray['uri'], 'uid' => $uid])) {
|
||||
if (Item::exists(['extid' => $postarray['uri'], 'uid' => $uid])) {
|
||||
return [];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue