From 85d68a001ab7ebbdf6d42c585bfdc116f8b27ac5 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Fri, 17 Dec 2021 15:48:03 +0100 Subject: [PATCH] Update src/Object/Api/Twitter/DirectMessage.php Co-authored-by: Hypolite Petovan --- src/Object/Api/Twitter/DirectMessage.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Object/Api/Twitter/DirectMessage.php b/src/Object/Api/Twitter/DirectMessage.php index 7c69b82a32..d34ef46b51 100644 --- a/src/Object/Api/Twitter/DirectMessage.php +++ b/src/Object/Api/Twitter/DirectMessage.php @@ -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; }