aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_notify.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-16 23:14:37 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-16 23:14:37 -0700
commitf937de932d87737d14278003f80b5bc5025acdc6 (patch)
tree340429a6f2b52c6729ebe7e3cd30771042db9aba /mod/dfrn_notify.php
parent5e4df4b3f7782f8a82664d24b86d46a14b3d178b (diff)
downloadvolse-hubzilla-f937de932d87737d14278003f80b5bc5025acdc6.tar.gz
volse-hubzilla-f937de932d87737d14278003f80b5bc5025acdc6.tar.bz2
volse-hubzilla-f937de932d87737d14278003f80b5bc5025acdc6.zip
fixing stuff that broke with the last big code push
Diffstat (limited to 'mod/dfrn_notify.php')
-rw-r--r--mod/dfrn_notify.php17
1 files changed, 9 insertions, 8 deletions
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php
index 6ab8d584a..c5c05134a 100644
--- a/mod/dfrn_notify.php
+++ b/mod/dfrn_notify.php
@@ -32,13 +32,13 @@ function get_atom_elements($item) {
if($rawedited)
$res['edited'] = $rawcreated[0]['data'];
- $rawowner = $item->get_item_tags('http://purl.org/macgirvin/dfrn/1.0", 'owner');
+ $rawowner = $item->get_item_tags('http://purl.org/macgirvin/dfrn/1.0', 'owner');
if($rawowner[0]['child']['http://purl.org/macgirvin/dfrn/1.0']['name'][0]['data'])
- $res['owner-name'] = rawowner[0]['child']['http://purl.org/macgirvin/dfrn/1.0']['name'][0]['data'];
+ $res['owner-name'] = $rawowner[0]['child']['http://purl.org/macgirvin/dfrn/1.0']['name'][0]['data'];
if($rawowner[0]['child']['http://purl.org/macgirvin/dfrn/1.0']['uri'][0]['data'])
- $res['owner-link'] = rawowner[0]['child']['http://purl.org/macgirvin/dfrn/1.0']['uri'][0]['data'];
+ $res['owner-link'] = $rawowner[0]['child']['http://purl.org/macgirvin/dfrn/1.0']['uri'][0]['data'];
if($rawowner[0]['child']['http://purl.org/macgirvin/dfrn/1.0']['avatar'][0]['data'])
- $res['owner-avatar'] = rawowner[0]['child']['http://purl.org/macgirvin/dfrn/1.0']['avatar'][0]['data'];
+ $res['owner-avatar'] = $rawowner[0]['child']['http://purl.org/macgirvin/dfrn/1.0']['avatar'][0]['data'];
return $res;
@@ -55,10 +55,11 @@ function post_remote($arr) {
$arr['owner-name'] = notags(trim($arr['owner-name']));
$arr['owner-link'] = notags(trim($arr['owner-link']));
$arr['owner-avatar'] = notags(trim($arr['owner-avatar']));
- if(! strlen($arr['remote-avatar']))
- $arr['remote-avatar'] = $a->get_baseurl() . '/images/default-profile-sm.jpg';
- if(! strlen($arr['owner-avatar']))
- $arr['owner-avatar'] = $a->get_baseurl() . '/images/default-profile-sm.jpg';
+// must pass $a
+// if(! strlen($arr['remote-avatar']))
+// $arr['remote-avatar'] = $a->get_baseurl() . '/images/default-profile-sm.jpg';
+// if(! strlen($arr['owner-avatar']))
+// $arr['owner-avatar'] = $a->get_baseurl() . '/images/default-profile-sm.jpg';
$arr['created'] = datetime_convert('UTC','UTC',$arr['created'],'Y-m-d H:i:s');
$arr['edited'] = datetime_convert('UTC','UTC',$arr['edited'],'Y-m-d H:i:s');
$arr['title'] = notags(trim($arr['title']));