Force updateAvatar if desired

This commit is contained in:
Mikael Nordfeldth
2015-01-26 17:25:46 +01:00
parent 67d09532dd
commit 697a00d8e1
2 changed files with 8 additions and 5 deletions

View File

@@ -1233,9 +1233,9 @@ class Ostatus_profile extends Managed_DataObject
* @param string $url
* @throws Exception in various failure cases
*/
public function updateAvatar($url)
public function updateAvatar($url, $force)
{
if ($url == $this->avatar) {
if ($url == $this->avatar && !$force) {
// We've already got this one.
return;
}