]> git.mxchange.org Git - friendica.git/blobdiff - include/api.php
removed unused get_app()
[friendica.git] / include / api.php
index d762507cf81f02f98fbd9c3c74556bf3fdab719c..57bbd6399355e01279154985d5c7b7760ef8ad3c 100644 (file)
@@ -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;