]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Post/Question.php
Replace split attachment code with PostMedia objects
[friendica.git] / src / Model / Post / Question.php
index d73c54a582710c65c7cd21bd3e81e079c61fc837..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
  *
@@ -43,7 +43,7 @@ class Question
                        throw new BadMethodCallException('Empty URI_id');
                }
 
-               $fields = DI::dbaDefinition()->getFieldsForTable('post-question', $data);
+               $fields = DI::dbaDefinition()->truncateFieldsForTable('post-question', $data);
 
                // Remove the key fields
                unset($fields['uri-id']);