mirror of
https://github.com/friendica/friendica
synced 2024-11-18 22:23:42 +00:00
Issue 4819: The introduction note is now stored displayed on the contact page.
This commit is contained in:
parent
81089e1b2e
commit
c214353a5d
1 changed files with 5 additions and 1 deletions
|
@ -284,6 +284,11 @@ function dfrn_confirm_post(App $a, $handsfree = null)
|
|||
}
|
||||
|
||||
if (($status == 0) && $intro_id) {
|
||||
$intro = dba::selectFirst('intro', ['note'], ['id' => $intro_id]);
|
||||
if (DBM::is_result($intro)) {
|
||||
dba::update('contact', ['reason' => $intro['note']], ['id' => $contact_id]);
|
||||
}
|
||||
|
||||
// Success. Delete the notification.
|
||||
dba::delete('intro', ['id' => $intro_id]);
|
||||
}
|
||||
|
@ -385,7 +390,6 @@ function dfrn_confirm_post(App $a, $handsfree = null)
|
|||
);
|
||||
}
|
||||
|
||||
/// @TODO is DBM::is_result() working here?
|
||||
if (!DBM::is_result($r)) {
|
||||
notice(L10n::t('Unable to set contact photo.') . EOL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue