diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/dfrn_notify.php | 12 | ||||
-rw-r--r-- | mod/item.php | 4 |
2 files changed, 13 insertions, 3 deletions
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php index 2d9d06fd1..301beaf2f 100644 --- a/mod/dfrn_notify.php +++ b/mod/dfrn_notify.php @@ -1,6 +1,6 @@ <?php - +require_once('simplepie/simplepie.inc'); @@ -22,11 +22,21 @@ function dfrn_notify_post(&$a) { dbesc($challenge) ); + $feed = new SimplePie(); + $feed->set_raw_data($data); + $feed->init(); + echo "Feed title:" . $feed->get_title(); + foreach ($feed->get_items() as $item) { + echo $item->get_permalink(); + echo $item->get_content(); + + } + killme(); } diff --git a/mod/item.php b/mod/item.php index 83854ed15..c7b5b4885 100644 --- a/mod/item.php +++ b/mod/item.php @@ -5,7 +5,7 @@ function sanitise_acl(&$item) { } function item_post(&$a) { -dbg(2); + if((! local_user()) && (! remote_user())) return; @@ -149,7 +149,7 @@ dbg(2); array(),$foo)); } -// goaway($a->get_baseurl() . "/profile/$profile_uid"); + goaway($a->get_baseurl() . "/profile/$profile_uid"); |