diff options
author | jeroenpraat <jeroenpraat@xs4all.nl> | 2016-01-27 00:24:05 +0100 |
---|---|---|
committer | jeroenpraat <jeroenpraat@xs4all.nl> | 2016-01-27 00:24:05 +0100 |
commit | 68030d12cfefa8982774cca9714b0c1eed7b9537 (patch) | |
tree | 236212dd522b8443206165efa3e9f8fee106c3e2 /include | |
parent | 3494fddd7c13637c8fb25104002b59448f182e79 (diff) | |
download | volse-hubzilla-68030d12cfefa8982774cca9714b0c1eed7b9537.tar.gz volse-hubzilla-68030d12cfefa8982774cca9714b0c1eed7b9537.tar.bz2 volse-hubzilla-68030d12cfefa8982774cca9714b0c1eed7b9537.zip |
Linking new connection notification to pending connections (see Channel 1) and improved email notifications about new connections. Could not find a way to do this also for the generic notifications. Added hub domain of channel address on the new channel page. A few people on my hub didn't understood. This example will make it more clear. Some minor bits.
Diffstat (limited to 'include')
-rw-r--r-- | include/enotify.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/enotify.php b/include/enotify.php index 5bb53aa0e..c4c49c8ff 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -273,14 +273,14 @@ function notification($params) { $preamble = sprintf( t('%1$s, you\'ve received an new connection request from \'%2$s\' at %3$s'), $recip['channel_name'], $sender['xchan_name'], $sitename); $epreamble = sprintf( t('%1$s, you\'ve received [zrl=%2$s]a new connection request[/zrl] from %3$s.'), $recip['channel_name'], - $itemlink, + $siteurl . '/connections/ifpending', '[zrl=' . $sender['xchan_url'] . ']' . $sender['xchan_name'] . '[/zrl]'); $body = sprintf( t('You may visit their profile at %s'),$sender['xchan_url']); $sitelink = t('Please visit %s to approve or reject the connection request.'); - $tsitelink = sprintf( $sitelink, $siteurl ); - $hsitelink = sprintf( $sitelink, '<a href="' . $siteurl . '">' . $sitename . '</a>'); - $itemlink = $params['link']; + $tsitelink = sprintf( $sitelink, $siteurl . '/connections/ifpending'); + $hsitelink = sprintf( $sitelink, '<a href="' . $siteurl . '/connections/ifpending">' . $sitename . '</a>'); + $itemlink = $params['link']; } if ($params['type'] == NOTIFY_SUGGEST) { |