]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Photo.php
Merge pull request #10813 from tobiasd/20211003-lengthcounter
[friendica.git] / src / Module / Photo.php
index 806ad449c5691feaff64f4e272a1e9e55b84e4f0..ea6af2636739ee66533025796f1269a779b89875 100644 (file)
@@ -97,6 +97,11 @@ class Photo extends BaseModule
                                $uid = intval(pathinfo($parameters['uid_ext'], PATHINFO_FILENAME));
                        }
 
+                       // Please refactor this for the love of everything that's good
+                       if (!empty($parameters['id'])) {
+                               $uid = $parameters['id'];
+                       }
+
                        $photo = self::getAvatar($uid, $parameters['type'], $customsize ?: Proxy::PIXEL_SMALL);
                } else {
                        $photoid = pathinfo($parameters['name'], PATHINFO_FILENAME);