summaryrefslogtreecommitdiff
path: root/app/Services/UserService.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-02-13 20:44:47 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-02-13 20:44:47 +0000
commit5d284d5d1c1aebf4add71a7eb2f6c99ce48c8f98 (patch)
tree98e742474a4eadc445715d01ccf141e75646a63b /app/Services/UserService.php
parent9f2cf18ef739ada50012e940e6767afa27cbaee7 (diff)
downloadwebtrees-5d284d5d1c1aebf4add71a7eb2f6c99ce48c8f98.tar.gz
webtrees-5d284d5d1c1aebf4add71a7eb2f6c99ce48c8f98.tar.bz2
webtrees-5d284d5d1c1aebf4add71a7eb2f6c99ce48c8f98.zip
Fix: #2191 - from/to mixed up when sending email
Diffstat (limited to 'app/Services/UserService.php')
-rw-r--r--app/Services/UserService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/Services/UserService.php b/app/Services/UserService.php
index 3faa7f775a..26e5f1ff45 100644
--- a/app/Services/UserService.php
+++ b/app/Services/UserService.php
@@ -332,7 +332,7 @@ class UserService
$url = 'mailto:' . $contact_user->email();
} elseif ($user instanceof User) {
// Logged-in users send direct messages
- $url = route('message', ['to' => $user->userName()]);
+ $url = route('message', ['to' => $contact_user->userName()]);
} else {
// Visitors use the contact form.
$url = route('contact', [