GitHost.io will be shut down on June 1, 2019. At that point this instance will be unreachable and all data will be irrevocably deleted. More details at https://about.gitlab.com/gitlab-hosted/#githost-is-shutting-down-on-june-1st-2019

Commit cd6fa512 authored by mmn's avatar mmn

Twitter Import + avatar fixes (cleaning up + fixing)

...there was also a typo in OstatussubAction ($avatarUrl not defined)
parent 39f43e41
......@@ -98,7 +98,7 @@ class Avatar extends Managed_DataObject
} catch (NoResultException $e) {
return false;
}
return !file_exists(Avatar::path($avatar->filename));
return file_exists(Avatar::path($avatar->filename));
}
public static function getProfileAvatars(Profile $target) {
......
......@@ -142,7 +142,7 @@ class OStatusSubAction extends Action
$ok = true;
}
$avatar = $profile->avatarUrl(AVATAR_PROFILE_SIZE);
$avatarUrl = $profile->avatarUrl(AVATAR_PROFILE_SIZE);
$this->showEntity($profile,
$profile->profileurl,
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment