mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:05:16 +02:00
feed related
This commit is contained in:
parent
43f8dd6802
commit
d20e1a6f93
7 changed files with 215 additions and 63 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue