mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:45:16 +02:00
more work
This commit is contained in:
parent
d81365c123
commit
bec3d15c52
4 changed files with 25 additions and 8 deletions
|
@ -15,17 +15,29 @@ require_once("datetime.php");
|
|||
// FIXME - generalise for other content, probably create a notify queue in
|
||||
// the db with type and recipient list
|
||||
|
||||
if(($argc != 3) || (! intval($argv[2])))
|
||||
if($argc < 3)
|
||||
exit;
|
||||
|
||||
$baseurl = trim(pack("H*" , $argv[1]));
|
||||
$baseurl = trim(hex2bin($argv[1]));
|
||||
|
||||
$cmd = $argv[2];
|
||||
|
||||
switch($cmd) {
|
||||
|
||||
default:
|
||||
$item_id = intval($argv[3]);
|
||||
if(! $item_id)
|
||||
killme();
|
||||
break;
|
||||
}
|
||||
|
||||
$item_id = $argv[2];
|
||||
|
||||
$is_parent = false;
|
||||
|
||||
$recipients = array();
|
||||
|
||||
// fetch requested item
|
||||
|
||||
$r = q("SELECT `item`.*, `contact`.*,`item`.`id` AS `item_id` FROM `item` LEFT JOIN `contact` ON `item`.`contact-id` = `contact`.`id`
|
||||
WHERE `item`.`id` = %d LIMIT 1",
|
||||
intval($item_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue