aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorChris Case <kahotep@bunda.dreamhost.com>2011-05-21 23:19:50 -0700
committerChris Case <kahotep@bunda.dreamhost.com>2011-05-21 23:19:50 -0700
commitf4cb6b9b08f6dc392b1f008f0aa9e9181f9e8b21 (patch)
tree2f803d93f54c2cb82ac47c05f1659d8827cef75e /mod/item.php
parent4cff911939b263993eb41682ca558c975e2db01f (diff)
downloadvolse-hubzilla-f4cb6b9b08f6dc392b1f008f0aa9e9181f9e8b21.tar.gz
volse-hubzilla-f4cb6b9b08f6dc392b1f008f0aa9e9181f9e8b21.tar.bz2
volse-hubzilla-f4cb6b9b08f6dc392b1f008f0aa9e9181f9e8b21.zip
fixed a couple of bugs
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php35
1 files changed, 19 insertions, 16 deletions
diff --git a/mod/item.php b/mod/item.php
index 0b5e32e88..8c9e004c3 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -485,12 +485,12 @@ function item_post(&$a) {
$email_html_body_tpl = replace_macros($tpl,array(
'$sitename' => $a->config['sitename'], // name of this site
'$siteurl' => $a->get_baseurl(), // descriptive url of this site
- '$thumb' => $conv['author-avatar'], // thumbnail url for sender icon
+ '$thumb' => $author['thumb'], // thumbnail url for sender icon
'$email' => $importer['email'], // email address to send to
- '$url' => $conv['author-link'], // full url for the site
- '$from' => $from, // name of the person sending the message
+ '$url' => $author['url'], // full url for the site
+ '$from' => $from, // name of the person sending the message
'$body' => $msg['htmlversion'], // html version of the message
- '$display' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $r,
+ '$display' => $a->get_baseurl() . '/display/' . $author['nick'] . '/' . $post_id,
));
// load the template for private message notifications
@@ -498,12 +498,12 @@ function item_post(&$a) {
$email_text_body_tpl = replace_macros($tpl,array(
'$sitename' => $a->config['sitename'], // name of this site
'$siteurl' => $a->get_baseurl(), // descriptive url of this site
- '$thumb' => $conv['author-avatar'], // thumbnail url for sender icon
+ '$thumb' => $author['thumb'], // thumbnail url for sender icon
'$email' => $importer['email'], // email address to send to
- '$url' => $conv['author-link'], // full url for the site
- '$from' => $from, // name of the person sending the message
+ '$url' => $author['url'], // full url for the site
+ '$from' => $from, // name of the person sending the message
'$body' => $msg['textversion'], // text version of the message
- '$display' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $r,
+ '$display' => $a->get_baseurl() . '/display/' . $author['nick'] . '/' . $post_id,
));
// use the EmailNotification library to send the message
@@ -548,11 +548,11 @@ function item_post(&$a) {
$email_html_body_tpl = replace_macros($tpl,array(
'$sitename' => $a->config['sitename'], // name of this site
'$siteurl' => $a->get_baseurl(), // descriptive url of this site
- '$thumb' => $conv['author-avatar'], // thumbnail url for sender icon
- '$url' => $conv['author-link'], // full url for the site
- '$from' => $from, // name of the person sending the message
+ '$thumb' => $author['thumb'], // thumbnail url for sender icon
+ '$url' => $author['url'], // full url for the site
+ '$from' => $from, // name of the person sending the message
'$body' => $msg['htmlversion'], // html version of the message
- '$display' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $r,
+ '$display' => $a->get_baseurl() . '/display/' . $author['nick'] . '/' . $post_id,
));
// load the template for private message notifications
@@ -560,11 +560,11 @@ function item_post(&$a) {
$email_text_body_tpl = replace_macros($tpl,array(
'$sitename' => $a->config['sitename'], // name of this site
'$siteurl' => $a->get_baseurl(), // descriptive url of this site
- '$thumb' => $conv['author-avatar'], // thumbnail url for sender icon
- '$url' => $conv['author-link'], // full url for the site
- '$from' => $from, // name of the person sending the message
+ '$thumb' => $author['thumb'], // thumbnail url for sender icon
+ '$url' => $author['url'], // full url for the site
+ '$from' => $from, // name of the person sending the message
'$body' => $msg['textversion'], // text version of the message
- '$display' => $a->get_baseurl() . '/display/' . $importer['nickname'] . '/' . $r,
+ '$display' => $a->get_baseurl() . '/display/' . $author['nick'] . '/' . $post_id,
));
// use the EmailNotification library to send the message
@@ -589,6 +589,9 @@ function item_post(&$a) {
dbesc(datetime_convert()),
intval($post_id)
);
+ foreach( $r as $key => $val) {
+ logger("key: " . $key . " val: " . $val);
+ }
// photo comments turn the corresponding item visible to the profile wall
// This way we don't see every picture in your new photo album posted to your wall at once.