]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
Use the Item class instead of DBA calls when possible
[friendica.git] / mod / item.php
index be3af101d9e18f66879c38883579ab1891724014..733c6aee85306c8e78b4bcb23cec661e326a015d 100644 (file)
@@ -152,7 +152,7 @@ function item_post(App $a) {
 
        // Check for multiple posts with the same message id (when the post was created via API)
        if (($message_id != '') && ($profile_uid != 0)) {
-               if (DBA::exists('item', ['uri' => $message_id, 'uid' => $profile_uid])) {
+               if (Item::exists(['uri' => $message_id, 'uid' => $profile_uid])) {
                        logger("Message with URI ".$message_id." already exists for user ".$profile_uid, LOGGER_DEBUG);
                        return;
                }