+
+ /* XXX: Inefficient, should directly take the profile as parameter */
+ $profile = Profile::get($pid);
+ $owner = $profile->owner();
+ if ($owner) {
+ XDB::execute('UPDATE accounts
+ SET full_name = {?}
+ WHERE uid = {?}',
+ $display_names['public_name'], $owner->id());
+ }