]> git.mxchange.org Git - friendica.git/commitdiff
Transmit header before creating user list
authorMichael <heluecht@pirati.ca>
Mon, 12 Dec 2022 02:43:32 +0000 (02:43 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 12 Dec 2022 02:43:32 +0000 (02:43 +0000)
src/Module/Api/Twitter/Followers/Lists.php
src/Module/Api/Twitter/Friends/Lists.php

index e969004cb77bb9d88a81a09523f0ef5b57c4a62b..930114c47bb37e0800856e91b3efbc2d5c141194 100644 (file)
@@ -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]);
        }
 }
index 11c9c4fc39b14d1f09538c4c0901671b1206895c..45c46f64d75624034cfd33a055f967dda3fc0ac9 100644 (file)
@@ -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]);
        }
 }