From 5ee72b681b931ebd692b81df1880487b2ac251cf Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Thu, 3 Jan 2019 09:02:37 +0100 Subject: [PATCH] removed unused get_app() --- include/api.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/api.php b/include/api.php index d762507cf8..57bbd63993 100644 --- a/include/api.php +++ b/include/api.php @@ -3690,7 +3690,6 @@ api_register_func('api/direct_messages/destroy', 'api_direct_messages_destroy', function api_friendships_destroy($type) { $uid = api_user(); - $a = get_app(); if ($uid === false) { throw new ForbiddenException(); @@ -5091,7 +5090,6 @@ function api_in_reply_to($item) // https://github.com/friendica/friendica/issues/1010 // This is a bugfix for that. if (intval($in_reply_to['status_id']) == intval($item['id'])) { - $a = get_app(); Logger::warning(API_LOG_PREFIX . 'ID {id} is similar to reply-to {reply-to}', ['module' => 'api', 'action' => 'in_reply_to', 'id' => $item['id'], 'reply-to' => $in_reply_to['status_id']]); $in_reply_to['status_id'] = null; $in_reply_to['user_id'] = null;