Update src/Module/BaseApi.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
80896936b2
commit
c7457c7a72
1 changed files with 1 additions and 9 deletions
|
@ -170,19 +170,11 @@ class BaseApi extends BaseModule
|
||||||
$requested_order = $request['friendica_order'];
|
$requested_order = $request['friendica_order'];
|
||||||
switch ($requested_order) {
|
switch ($requested_order) {
|
||||||
case TimelineOrderByTypes::CHANGED:
|
case TimelineOrderByTypes::CHANGED:
|
||||||
$order_field = 'changed';
|
|
||||||
break;
|
|
||||||
case TimelineOrderByTypes::CREATED:
|
case TimelineOrderByTypes::CREATED:
|
||||||
$order_field = 'created';
|
|
||||||
break;
|
|
||||||
case TimelineOrderByTypes::COMMENTED:
|
case TimelineOrderByTypes::COMMENTED:
|
||||||
$order_field = 'commented';
|
|
||||||
break;
|
|
||||||
case TimelineOrderByTypes::EDITED:
|
case TimelineOrderByTypes::EDITED:
|
||||||
$order_field = 'edited';
|
|
||||||
break;
|
|
||||||
case TimelineOrderByTypes::RECEIVED:
|
case TimelineOrderByTypes::RECEIVED:
|
||||||
$order_field = 'received';
|
$order_field = $requested_order;
|
||||||
break;
|
break;
|
||||||
case TimelineOrderByTypes::ID:
|
case TimelineOrderByTypes::ID:
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in a new issue