]> git.mxchange.org Git - friendica.git/blobdiff - src/Object/Api/Twitter/DirectMessage.php
Merge pull request #13676 from MrPetovan/bug/13673-markers-json-output
[friendica.git] / src / Object / Api / Twitter / DirectMessage.php
index 7c69b82a32e818462bda4d1298b953643f95f78d..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,12 +92,8 @@ 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;
        }