From c214353a5ddee81f67aeb9958eb3af12aaef9b15 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 19 May 2018 15:29:34 +0000 Subject: [PATCH] Issue 4819: The introduction note is now stored displayed on the contact page. --- mod/dfrn_confirm.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 94f355797d..857f6c82df 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -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); } -- 2.39.5