X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FPost%2FThread.php;h=4d9290bf7eddea112516dbd3ba4e68b2c1252b31;hb=fdaff4303952427f222ee21f6b501d5087e25932;hp=ec2e8348c9a12a23dd47008b5704fd016dbde51c;hpb=53e38b03130ea798bba44db44ccb7f331dc4b91d;p=friendica.git diff --git a/src/Model/Post/Thread.php b/src/Model/Post/Thread.php index ec2e8348c9..4d9290bf7e 100644 --- a/src/Model/Post/Thread.php +++ b/src/Model/Post/Thread.php @@ -1,6 +1,6 @@ truncateFieldsForTable('post-thread', $data); // Additionally assign the key fields $fields['uri-id'] = $uri_id; @@ -67,7 +66,7 @@ class Thread throw new BadMethodCallException('Empty URI_id'); } - $fields = DBStructure::getFieldsForTable('post-thread', $data); + $fields = DI::dbaDefinition()->truncateFieldsForTable('post-thread', $data); // Remove the key fields unset($fields['uri-id']);