]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/userprofile.php
Workaround for display of Twitter remote users in remoteprofile (ModPlus plugin)...
[quix0rs-gnu-social.git] / lib / userprofile.php
index 0f48078d1719e85f4ad88c87c3d2e52d50225974..9124b7c94d0b4c81e8c6dbffb0728170461fead4 100644 (file)
@@ -98,6 +98,10 @@ class UserProfile extends Widget
         if (Event::handle('StartProfilePageAvatar', array($this->out, $this->profile))) {
 
             $avatar = $this->profile->getAvatar(AVATAR_PROFILE_SIZE);
+            if (!$avatar) {
+                // hack for remote Twitter users: no 96px, but large Twitter size is 73px
+                $avatar = $this->profile->getAvatar(73);
+            }
 
             $this->out->elementStart('dl', 'entity_depiction');
             $this->out->element('dt', null, _('Photo'));