aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-05 20:57:41 -0800
committerfriendica <info@friendica.com>2013-01-05 20:57:41 -0800
commit364e33e4f1a938c87e10606f8fb72ba0524dcb7e (patch)
tree294fe90d22802e10df97bb2fd8731606070ccfb7
parent529451a4e535abb015589149c01b1e9f6d5a0ce2 (diff)
downloadvolse-hubzilla-364e33e4f1a938c87e10606f8fb72ba0524dcb7e.tar.gz
volse-hubzilla-364e33e4f1a938c87e10606f8fb72ba0524dcb7e.tar.bz2
volse-hubzilla-364e33e4f1a938c87e10606f8fb72ba0524dcb7e.zip
tweak notifications so they store correctly
-rw-r--r--include/enotify.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/enotify.php b/include/enotify.php
index 8957fb3bc..d26c6a2f6 100644
--- a/include/enotify.php
+++ b/include/enotify.php
@@ -29,11 +29,11 @@ function notification($params) {
push_lang($recip['account_language']); // should probably have a channel language
- $banner = t('Red Notification');
- $product = FRIENDICA_PLATFORM;
- $siteurl = $a->get_baseurl(true);
- $thanks = t('Thank You,');
- $sitename = get_config('config','sitename');
+ $banner = t('Red Notification');
+ $product = FRIENDICA_PLATFORM;
+ $siteurl = $a->get_baseurl(true);
+ $thanks = t('Thank You,');
+ $sitename = get_config('system','sitename');
$site_admin = sprintf( t('%s Administrator'), $sitename);
$sender_name = $product;
@@ -280,7 +280,7 @@ function notification($params) {
$datarray['url'] = $sender['xchan_url'];
$datarray['photo'] = $sender['xchan_photo_s'];
$datarray['date'] = datetime_convert();
- $datarray['uid'] = $params['uid'];
+ $datarray['uid'] = $recip['channel_id'];
$datarray['link'] = $itemlink;
$datarray['parent'] = $parent_id;
$datarray['type'] = $params['type'];
@@ -384,7 +384,7 @@ intval($params['uid']), LOGGER_DEBUG);
$datarray['source_name'] = $sender['xchan_name'];
$datarray['source_link'] = $sender['xchan_url'];
$datarray['source_photo'] = $sender['xchan_photo_s'];
- $datarray['uid'] = $params['uid'];
+ $datarray['uid'] = $recip['channel_id'];
$datarray['username'] = $recip['channel_name'];
$datarray['hsitelink'] = $hsitelink;
$datarray['tsitelink'] = $tsitelink;