From: Michael Date: Mon, 12 Dec 2022 02:43:32 +0000 (+0000) Subject: Transmit header before creating user list X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a2f386cd2f39552cea17210b388b94261ac1f0ea;p=friendica.git Transmit header before creating user list --- diff --git a/src/Module/Api/Twitter/Followers/Lists.php b/src/Module/Api/Twitter/Followers/Lists.php index e969004cb7..930114c47b 100644 --- a/src/Module/Api/Twitter/Followers/Lists.php +++ b/src/Module/Api/Twitter/Followers/Lists.php @@ -110,10 +110,10 @@ class Lists extends ContactEndpoint $ids = array_reverse($ids); } - $return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities); - self::setLinkHeader(); + $return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities); + $this->response->exit('lists', ['lists' => $return]); } } diff --git a/src/Module/Api/Twitter/Friends/Lists.php b/src/Module/Api/Twitter/Friends/Lists.php index 11c9c4fc39..45c46f64d7 100644 --- a/src/Module/Api/Twitter/Friends/Lists.php +++ b/src/Module/Api/Twitter/Friends/Lists.php @@ -110,10 +110,10 @@ class Lists extends ContactEndpoint $ids = array_reverse($ids); } - $return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities); - self::setLinkHeader(); + $return = self::list($ids, $total_count, $uid, $cursor, $count, $skip_status, $include_user_entities); + $this->response->exit('lists', ['lists' => $return]); } }