From c7457c7a72d77152fcf378661e153dd51ae5abf5 Mon Sep 17 00:00:00 2001 From: Hank G Date: Tue, 28 Feb 2023 13:49:23 -0500 Subject: [PATCH] Update src/Module/BaseApi.php Co-authored-by: Hypolite Petovan --- src/Module/BaseApi.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 2be5c246a2..10e64044f3 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -170,19 +170,11 @@ class BaseApi extends BaseModule $requested_order = $request['friendica_order']; switch ($requested_order) { case TimelineOrderByTypes::CHANGED: - $order_field = 'changed'; - break; case TimelineOrderByTypes::CREATED: - $order_field = 'created'; - break; case TimelineOrderByTypes::COMMENTED: - $order_field = 'commented'; - break; case TimelineOrderByTypes::EDITED: - $order_field = 'edited'; - break; case TimelineOrderByTypes::RECEIVED: - $order_field = 'received'; + $order_field = $requested_order; break; case TimelineOrderByTypes::ID: default: