]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Post/Question.php
Merge remote-tracking branch 'upstream/2023.09-rc' into user-defined-channels
[friendica.git] / src / Model / Post / Question.php
index db0d755b7fe47b1402a3b38a27ab3224b8b26331..6c585629783965db55a9636652fb4690d89dd007 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -24,6 +24,7 @@ namespace Friendica\Model\Post;
 use BadMethodCallException;
 use Friendica\Database\DBA;
 use Friendica\Database\DBStructure;
+use Friendica\DI;
 
 class Question
 {
@@ -42,7 +43,7 @@ class Question
                        throw new BadMethodCallException('Empty URI_id');
                }
 
-               $fields = DBStructure::getFieldsForTable('post-question', $data);
+               $fields = DI::dbaDefinition()->truncateFieldsForTable('post-question', $data);
 
                // Remove the key fields
                unset($fields['uri-id']);