1
0
Fork 0

New function for creating the OStatus messages

This commit is contained in:
Michael Vogel 2015-11-23 18:44:47 +01:00
commit 75f1a17f7e
4 changed files with 383 additions and 1 deletions

View file

@ -4,6 +4,7 @@ require_once('include/queue_fn.php');
require_once('include/html2plain.php');
require_once("include/Scrape.php");
require_once('include/diaspora.php');
require_once("include/ostatus.php");
/*
* This file was at one time responsible for doing all deliveries, but this caused
@ -529,6 +530,7 @@ function notifier_run(&$argv, &$argc){
unset($photos);
} else {
//$slap = ostatus_salmon($target_item,$owner);
$slap = atom_entry($target_item,'html',null,$owner,false);
if($followup) {
@ -569,6 +571,7 @@ function notifier_run(&$argv, &$argc){
$atom .= atom_entry($item,'text',null,$owner,true);
if(($top_level) && ($public_message) && ($item['author-link'] === $item['owner-link']) && (! $expire))
//$slaps[] = ostatus_salmon($item,$owner);
$slaps[] = atom_entry($item,'html',null,$owner,true);
}
}