]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_upload.php
API: Classes moved to the correct places according to their origin
[friendica.git] / mod / wall_upload.php
index 38819c9a581768893e913ab2c2d8ad30265e8293..88d5008c2564e16a8f01801572a9b33af3dac05b 100644 (file)
@@ -55,7 +55,7 @@ function wall_upload_post(App $a, $desktopmode = true)
                                return;
                        }
                } else {
-                       $user_info = api_get_user($a);
+                       $user_info = api_get_user();
                        $user = DBA::selectFirst('owner-view', ['id', 'uid', 'nickname', 'page-flags'], ['nickname' => $user_info['screen_name'], 'blocked' => false]);
                }
        } else {
@@ -177,9 +177,6 @@ function wall_upload_post(App $a, $desktopmode = true)
        @unlink($src);
 
        $max_length = DI::config()->get('system', 'max_image_length');
-       if (!$max_length) {
-               $max_length = MAX_IMAGE_LENGTH;
-       }
        if ($max_length > 0) {
                $Image->scaleDown($max_length);
                $filesize = strlen($Image->asString());