aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_notify.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/dfrn_notify.php')
-rw-r--r--mod/dfrn_notify.php12
1 files changed, 11 insertions, 1 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();
}