diff options
author | Evan Prodromou <evan@status.net> | 2009-11-09 17:43:45 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-11-09 17:43:45 -0500 |
commit | 8bcc58a9894e715dc1cb39eeb390bf8deefc13b7 (patch) | |
tree | 04781c6d251466b84035f478f995e4eeb6cad951 /scripts/updateavatarurl.php | |
parent | a0a9c7bcbf2d0cd041e9ada136213816600a7d84 (diff) | |
parent | 499b3555df2a3c27f56f2931b3add15192fef1fc (diff) |
Merge branch 'master' into 0.8.x
Conflicts:
scripts/updateavatarurl.php
Diffstat (limited to 'scripts/updateavatarurl.php')
-rw-r--r-- | scripts/updateavatarurl.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/updateavatarurl.php b/scripts/updateavatarurl.php index acafa74b0..dfcfc118c 100644 --- a/scripts/updateavatarurl.php +++ b/scripts/updateavatarurl.php @@ -69,6 +69,8 @@ try { function updateAvatars($user) { + $touched = false; + if (!have_option('q', 'quiet')) { print "Updating avatars for user '".$user->nickname."' (".$user->id.")..."; } @@ -108,11 +110,18 @@ function updateAvatars($user) if (!$avatar->query($sql)) { throw new Exception("Can't update avatar for user " . $user->nickname . "."); + } else { + $touched = true; } } } + } + if ($touched) { + $profile = $user->getProfile(); + common_broadcast_profile($profile); } + if (have_option('v', 'verbose')) { print "DONE.\n"; } |