aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-18 06:02:19 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-18 06:02:19 -0700
commit5bdff4d44ceefc9fa1b9936a8ec6ef05b18334d3 (patch)
tree411bb1cc7ad683ac1f7e50282c34757ac1e3c3fe /mod
parent5ed87a44e61fe4318fd1cb34ca1f3feed67a5f72 (diff)
downloadvolse-hubzilla-5bdff4d44ceefc9fa1b9936a8ec6ef05b18334d3.tar.gz
volse-hubzilla-5bdff4d44ceefc9fa1b9936a8ec6ef05b18334d3.tar.bz2
volse-hubzilla-5bdff4d44ceefc9fa1b9936a8ec6ef05b18334d3.zip
more dfrn_poll
Diffstat (limited to 'mod')
-rw-r--r--mod/dfrn_poll.php23
1 files changed, 14 insertions, 9 deletions
diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php
index 042a15f5e..ae3dc892d 100644
--- a/mod/dfrn_poll.php
+++ b/mod/dfrn_poll.php
@@ -1,5 +1,6 @@
<?php
+require_once('include/items.php');
function dfrn_poll_init(&$a) {
@@ -16,6 +17,12 @@ function dfrn_poll_init(&$a) {
return;
+ if(($dfrn_id == '*') && ($a->argc > 1) && (intval($a->argv[1]))) {
+ $o = get_feed_for($a,'*', $a->argv[1],$last_update);
+ echo $o;
+ killme();
+ }
+
if((x($type)) && ($type == 'profile')) {
$r = q("SELECT `contact`.*, `user`.`nickname`
@@ -101,7 +108,7 @@ function dfrn_poll_post(&$a) {
dbesc($challenge)
);
if(! count($r))
- xml_status(3);
+ killme();
$type = $r[0]['type'];
$last_update = $r[0]['last_update'];
@@ -116,7 +123,7 @@ function dfrn_poll_post(&$a) {
dbesc($dfrn_id)
);
if(! count($r))
- xml_status(3);
+ killme();
$owner_uid = $r[0]['uid'];
$contact_id = $r[0]['id'];
@@ -150,17 +157,15 @@ function dfrn_poll_post(&$a) {
killme();
return; // NOTREACHED
}
+ else {
+ $o = get_feed_for($a,$dfrn_id, $a->argv[1], $last_update);
+ echo $o;
+ killme();
-
+ }
}
-function dfrn_poll_content(&$a) {
-
-
-
-
-} \ No newline at end of file