]> git.mxchange.org Git - friendica.git/commitdiff
Standards and some more replace item calls
authorMichael <heluecht@pirati.ca>
Thu, 28 Jun 2018 03:31:10 +0000 (03:31 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 28 Jun 2018 03:31:10 +0000 (03:31 +0000)
mod/photos.php
src/Model/Term.php

index c0e1c7477ad434000e73ee2cc9c45e5ccb582a11..34eea0c64296ac846759779685166d7e1a7bb416 100644 (file)
@@ -640,7 +640,7 @@ function photos_post(App $a)
                                        $arr['deny_gid']      = $p[0]['deny_gid'];
                                        $arr['visible']       = 1;
                                        $arr['verb']          = ACTIVITY_TAG;
-                                       $arr["gravity"]       = GRAVITY_PARENT;
+                                       $arr['gravity']       = GRAVITY_PARENT;
                                        $arr['object-type']   = ACTIVITY_OBJ_PERSON;
                                        $arr['target-type']   = ACTIVITY_OBJ_IMAGE;
                                        $arr['tag']           = $tagged[4];
index b211e7d2ebd532cdd48c44b99639762f3c091def..8587142092a5fd12d9f320fbcb32bcc64de852ef 100644 (file)
@@ -24,7 +24,7 @@ class Term
                $profile_base_diaspora = $profile_data['host'] . $profile_path . '/u/';
 
                $fields = ['guid', 'uid', 'id', 'edited', 'deleted', 'created', 'received', 'title', 'body', 'tag', 'parent'];
-               $message = dba::selectFirst('item', $fields, ['id' => $itemid]);
+               $message = Item::selectFirst($fields, ['id' => $itemid]);
                if (!DBM::is_result($message)) {
                        return;
                }
@@ -130,7 +130,7 @@ class Term
         */
        public static function insertFromFileFieldByItemId($itemid)
        {
-               $message = dba::selectFirst('item', ['uid', 'deleted', 'file'], ['id' => $itemid]);
+               $message = Item::selectFirst(['uid', 'deleted', 'file'], ['id' => $itemid]);
                if (!DBM::is_result($message)) {
                        return;
                }