]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Post/ThreadUser.php
Improved profile summary for notifications
[friendica.git] / src / Model / Post / ThreadUser.php
index 2e850de05dff46153cc4f2df6b3d545d26025f88..aab2314c7537526a700d3877ede3f05fe15ce1b0 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
  *
@@ -44,7 +44,7 @@ class ThreadUser
                        throw new BadMethodCallException('Empty URI_id');
                }
 
-               $fields = DI::dbaDefinition()->getFieldsForTable('post-thread-user', $data);
+               $fields = DI::dbaDefinition()->truncateFieldsForTable('post-thread-user', $data);
 
                // Additionally assign the key fields
                $fields['uri-id'] = $uri_id;
@@ -69,7 +69,7 @@ class ThreadUser
                        throw new BadMethodCallException('Empty URI_id');
                }
 
-               $fields = DI::dbaDefinition()->getFieldsForTable('post-thread-user', $data);
+               $fields = DI::dbaDefinition()->truncateFieldsForTable('post-thread-user', $data);
 
                // Remove the key fields
                unset($fields['uri-id']);
@@ -99,10 +99,10 @@ class ThreadUser
        }
 
        /**
-        * @param int $uri_id 
-        * @param int $uid 
-        * @return bool 
-        * @throws Exception 
+        * @param int $uri_id
+        * @param int $uid
+        * @return bool
+        * @throws Exception
         */
        public static function getIgnored(int $uri_id, int $uid)
        {
@@ -114,11 +114,11 @@ class ThreadUser
        }
 
        /**
-        * @param int $uri_id 
-        * @param int $uid 
-        * @param int $ignored 
-        * @return void 
-        * @throws Exception 
+        * @param int $uri_id
+        * @param int $uid
+        * @param int $ignored
+        * @return void
+        * @throws Exception
         */
        public static function setIgnored(int $uri_id, int $uid, int $ignored)
        {