Skip to content

Commit

Permalink
always write to FlickrUsersPathAliases
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Dec 3, 2011
1 parent c9a0abf commit 720f69a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/backfill_more_user_info_in_flickrusers.php
Expand Up @@ -10,6 +10,7 @@
loadlib("backfill");
loadlib("flickr_api");
loadlib("flickr_users");
loadlib("flickr_users_path_aliases");

function _get_nsid($flickr_user, $more=array()){

Expand Down Expand Up @@ -53,6 +54,10 @@ function _get_nsid($flickr_user, $more=array()){
$rsp = flickr_users_update_user($flickr_user, $update);

echo "[{$user['id']}] update path alias: {$rsp['ok']}\n";

# just let this fail silently if there's a duplicate

flickr_users_path_aliases_create($user, $path_alias);
}

if ($username != $user['username']){
Expand Down

0 comments on commit 720f69a

Please sign in to comment.