]> git.mxchange.org Git - friendica.git/commitdiff
Apply suggestions from code review
authorMichael Vogel <icarus@dabo.de>
Fri, 27 Jan 2023 06:21:08 +0000 (07:21 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Jan 2023 06:21:08 +0000 (07:21 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
src/Module/Photo.php

index 7f3429b028afa03f792c5618e7d4f71a774f4dff..bb7ee60297c43dd2ccfa65ff5a654135de14dc76 100644 (file)
@@ -353,7 +353,6 @@ class Photo extends BaseModule
                                // If it is a local link, we save resources by just redirecting to it.
                                if (Network::isLocalLink($url)) {
                                        System::externalRedirect($url);
-                                       System::exit();
                                }
 
                                $mimetext = '';
@@ -402,7 +401,6 @@ class Photo extends BaseModule
                                        }
                                        if (Network::isLocalLink($url)) {
                                                System::externalRedirect($url);
-                                               System::exit();
                                        }
                                }
                                return MPhoto::createPhotoForExternalResource($url, 0, $mimetext, $contact['blurhash'] ?? null, $customsize, $customsize);
@@ -430,7 +428,6 @@ class Photo extends BaseModule
                                        $url = Contact::getDefaultHeader($contact);
                                        if (Network::isLocalLink($url)) {
                                                System::externalRedirect($url);
-                                               System::exit();
                                        }
                                }
                                return MPhoto::createPhotoForExternalResource($url);
@@ -467,7 +464,6 @@ class Photo extends BaseModule
 
                        if (Network::isLocalLink($default)) {
                                System::externalRedirect($default);
-                               System::exit();
                        }
 
                        $parts = parse_url($default);