aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-14 23:04:10 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-14 23:04:10 -0700
commitd20e1a6f938d088708166e039ae0088a8ddf11e4 (patch)
tree7fa25d32ca357cd04debe066956f9a44f56e5206 /mod
parent43f8dd680234239f2cf6e0d62a12aa32aacf5b16 (diff)
downloadvolse-hubzilla-d20e1a6f938d088708166e039ae0088a8ddf11e4.tar.gz
volse-hubzilla-d20e1a6f938d088708166e039ae0088a8ddf11e4.tar.bz2
volse-hubzilla-d20e1a6f938d088708166e039ae0088a8ddf11e4.zip
feed related
Diffstat (limited to 'mod')
-rw-r--r--mod/dfrn_notify.php12
-rw-r--r--mod/item.php4
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");