]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Api/Twitter/DirectMessage.php
Use the owner, not the author
[friendica.git] / src / Object / Api / Twitter / DirectMessage.php
index 04f34d209870f757b940864b70d1ac2c9507ac05..9ec7d54394ccc1c7836fb4f71138ed458ba5ff27 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -92,13 +92,9 @@ class DirectMessage extends BaseDataTransferObject
                        unset($status['title']);
                }
 
-/*             if (isset($status['sender']['uid'])) {
-                       unset($status['sender']['uid']);
-               }
-               if (isset($status['recipient']['uid'])) {
-                       unset($status['recipient']['uid']);
-               }
-*/
+               unset($status['sender']['uid']);
+               unset($status['recipient']['uid']);
+
                return $status;
        }
 }