$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];
$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;
}
*/
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;
}