Use the Item class instead of DBA calls when possible (#705)

This commit is contained in:
Michael Vogel 2018-08-15 07:23:53 +02:00 committed by Tobias Diekershoff
parent fd1eed17ab
commit 28b699573c
3 changed files with 11 additions and 17 deletions

View file

@ -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 [];
}