<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
*/
class Conversations extends BaseApi
{
- protected function delete()
+ protected function delete(array $request = [])
{
self::checkAllowedScope(self::SCOPE_WRITE);
$uid = self::getCurrentUserID();
while ($conv = DBA::fetch($convs)) {
self::setBoundaries($conv['id']);
- $conversations[] = DI::mstdnConversation()->CreateFromConvId($conv['id']);
+ $conversations[] = DI::mstdnConversation()->createFromConvId($conv['id']);
}
DBA::close($convs);
if (!empty($request['min_id'])) {
- array_reverse($conversations);
+ $conversations = array_reverse($conversations);
}
self::setLinkHeader();