use Friendica\Core\System;
use Friendica\Core\Worker;
use Friendica\Database\DBM;
-use Friendica\Util\Xml;
+use Friendica\Model\GlobalContact;
+use Friendica\Object\Contact;
+use Friendica\Object\Profile;
+use Friendica\Protocol\OStatus;
+use Friendica\Util\XML;
use dba;
use DOMDocument;
use DomXPath;
-use ostatus;
-require_once "include/Contact.php";
require_once "include/enotify.php";
require_once "include/threads.php";
-require_once "include/socgraph.php";
require_once "include/items.php";
require_once "include/tags.php";
require_once "include/files.php";
$mail = $doc->createElement("dfrn:mail");
$sender = $doc->createElement("dfrn:sender");
- Xml::add_element($doc, $sender, "dfrn:name", $owner['name']);
- Xml::add_element($doc, $sender, "dfrn:uri", $owner['url']);
- Xml::add_element($doc, $sender, "dfrn:avatar", $owner['thumb']);
+ XML::add_element($doc, $sender, "dfrn:name", $owner['name']);
+ XML::add_element($doc, $sender, "dfrn:uri", $owner['url']);
+ XML::add_element($doc, $sender, "dfrn:avatar", $owner['thumb']);
$mail->appendChild($sender);
- Xml::add_element($doc, $mail, "dfrn:id", $item['uri']);
- Xml::add_element($doc, $mail, "dfrn:in-reply-to", $item['parent-uri']);
- Xml::add_element($doc, $mail, "dfrn:sentdate", datetime_convert('UTC', 'UTC', $item['created'] . '+00:00' , ATOM_TIME));
- Xml::add_element($doc, $mail, "dfrn:subject", $item['title']);
- Xml::add_element($doc, $mail, "dfrn:content", $item['body']);
+ XML::add_element($doc, $mail, "dfrn:id", $item['uri']);
+ XML::add_element($doc, $mail, "dfrn:in-reply-to", $item['parent-uri']);
+ XML::add_element($doc, $mail, "dfrn:sentdate", datetime_convert('UTC', 'UTC', $item['created'] . '+00:00' , ATOM_TIME));
+ XML::add_element($doc, $mail, "dfrn:subject", $item['title']);
+ XML::add_element($doc, $mail, "dfrn:content", $item['body']);
$root->appendChild($mail);
$suggest = $doc->createElement("dfrn:suggest");
- Xml::add_element($doc, $suggest, "dfrn:url", $item['url']);
- Xml::add_element($doc, $suggest, "dfrn:name", $item['name']);
- Xml::add_element($doc, $suggest, "dfrn:photo", $item['photo']);
- Xml::add_element($doc, $suggest, "dfrn:request", $item['request']);
- Xml::add_element($doc, $suggest, "dfrn:note", $item['note']);
+ XML::add_element($doc, $suggest, "dfrn:url", $item['url']);
+ XML::add_element($doc, $suggest, "dfrn:name", $item['name']);
+ XML::add_element($doc, $suggest, "dfrn:photo", $item['photo']);
+ XML::add_element($doc, $suggest, "dfrn:request", $item['request']);
+ XML::add_element($doc, $suggest, "dfrn:note", $item['note']);
$root->appendChild($suggest);
$relocate = $doc->createElement("dfrn:relocate");
- Xml::add_element($doc, $relocate, "dfrn:url", $owner['url']);
- Xml::add_element($doc, $relocate, "dfrn:name", $owner['name']);
- Xml::add_element($doc, $relocate, "dfrn:addr", $owner['addr']);
- Xml::add_element($doc, $relocate, "dfrn:avatar", $owner['avatar']);
- Xml::add_element($doc, $relocate, "dfrn:photo", $photos[4]);
- Xml::add_element($doc, $relocate, "dfrn:thumb", $photos[5]);
- Xml::add_element($doc, $relocate, "dfrn:micro", $photos[6]);
- Xml::add_element($doc, $relocate, "dfrn:request", $owner['request']);
- Xml::add_element($doc, $relocate, "dfrn:confirm", $owner['confirm']);
- Xml::add_element($doc, $relocate, "dfrn:notify", $owner['notify']);
- Xml::add_element($doc, $relocate, "dfrn:poll", $owner['poll']);
- Xml::add_element($doc, $relocate, "dfrn:sitepubkey", Config::get('system','site_pubkey'));
+ XML::add_element($doc, $relocate, "dfrn:url", $owner['url']);
+ XML::add_element($doc, $relocate, "dfrn:name", $owner['name']);
+ XML::add_element($doc, $relocate, "dfrn:addr", $owner['addr']);
+ XML::add_element($doc, $relocate, "dfrn:avatar", $owner['avatar']);
+ XML::add_element($doc, $relocate, "dfrn:photo", $photos[4]);
+ XML::add_element($doc, $relocate, "dfrn:thumb", $photos[5]);
+ XML::add_element($doc, $relocate, "dfrn:micro", $photos[6]);
+ XML::add_element($doc, $relocate, "dfrn:request", $owner['request']);
+ XML::add_element($doc, $relocate, "dfrn:confirm", $owner['confirm']);
+ XML::add_element($doc, $relocate, "dfrn:notify", $owner['notify']);
+ XML::add_element($doc, $relocate, "dfrn:poll", $owner['poll']);
+ XML::add_element($doc, $relocate, "dfrn:sitepubkey", Config::get('system','site_pubkey'));
$root->appendChild($relocate);
$root->setAttribute("xmlns:ostatus", NAMESPACE_OSTATUS);
$root->setAttribute("xmlns:statusnet", NAMESPACE_STATUSNET);
- Xml::add_element($doc, $root, "id", System::baseUrl()."/profile/".$owner["nick"]);
- Xml::add_element($doc, $root, "title", $owner["name"]);
+ XML::add_element($doc, $root, "id", System::baseUrl()."/profile/".$owner["nick"]);
+ XML::add_element($doc, $root, "title", $owner["name"]);
$attributes = array("uri" => "https://friendi.ca", "version" => FRIENDICA_VERSION."-".DB_UPDATE_VERSION);
- Xml::add_element($doc, $root, "generator", FRIENDICA_PLATFORM, $attributes);
+ XML::add_element($doc, $root, "generator", FRIENDICA_PLATFORM, $attributes);
$attributes = array("rel" => "license", "href" => "http://creativecommons.org/licenses/by/3.0/");
- Xml::add_element($doc, $root, "link", "", $attributes);
+ XML::add_element($doc, $root, "link", "", $attributes);
$attributes = array("rel" => "alternate", "type" => "text/html", "href" => $alternatelink);
- Xml::add_element($doc, $root, "link", "", $attributes);
+ XML::add_element($doc, $root, "link", "", $attributes);
if ($public) {
// DFRN itself doesn't uses this. But maybe someone else wants to subscribe to the public feed.
- ostatus::hublinks($doc, $root, $owner["nick"]);
+ OStatus::hublinks($doc, $root, $owner["nick"]);
$attributes = array("rel" => "salmon", "href" => System::baseUrl()."/salmon/".$owner["nick"]);
- Xml::add_element($doc, $root, "link", "", $attributes);
+ XML::add_element($doc, $root, "link", "", $attributes);
$attributes = array("rel" => "http://salmon-protocol.org/ns/salmon-replies", "href" => System::baseUrl()."/salmon/".$owner["nick"]);
- Xml::add_element($doc, $root, "link", "", $attributes);
+ XML::add_element($doc, $root, "link", "", $attributes);
$attributes = array("rel" => "http://salmon-protocol.org/ns/salmon-mention", "href" => System::baseUrl()."/salmon/".$owner["nick"]);
- Xml::add_element($doc, $root, "link", "", $attributes);
+ XML::add_element($doc, $root, "link", "", $attributes);
}
// For backward compatibility we keep this element
if ($owner['page-flags'] == PAGE_COMMUNITY) {
- Xml::add_element($doc, $root, "dfrn:community", 1);
+ XML::add_element($doc, $root, "dfrn:community", 1);
}
// The former element is replaced by this one
- Xml::add_element($doc, $root, "dfrn:account_type", $owner["account-type"]);
+ XML::add_element($doc, $root, "dfrn:account_type", $owner["account-type"]);
/// @todo We need a way to transmit the different page flags like "PAGE_PRVGROUP"
- Xml::add_element($doc, $root, "updated", datetime_convert("UTC", "UTC", "now", ATOM_TIME));
+ XML::add_element($doc, $root, "updated", datetime_convert("UTC", "UTC", "now", ATOM_TIME));
$author = self::add_author($doc, $owner, $authorelement, $public);
$root->appendChild($author);
$attributes = array("dfrn:updated" => $namdate);
}
- Xml::add_element($doc, $author, "name", $owner["name"], $attributes);
- Xml::add_element($doc, $author, "uri", System::baseUrl().'/profile/'.$owner["nickname"], $attributes);
- Xml::add_element($doc, $author, "dfrn:handle", $owner["addr"], $attributes);
+ XML::add_element($doc, $author, "name", $owner["name"], $attributes);
+ XML::add_element($doc, $author, "uri", System::baseUrl().'/profile/'.$owner["nickname"], $attributes);
+ XML::add_element($doc, $author, "dfrn:handle", $owner["addr"], $attributes);
$attributes = array("rel" => "photo", "type" => "image/jpeg",
"media:width" => 175, "media:height" => 175, "href" => $owner['photo']);
$attributes["dfrn:updated"] = $picdate;
}
- Xml::add_element($doc, $author, "link", "", $attributes);
+ XML::add_element($doc, $author, "link", "", $attributes);
$attributes["rel"] = "avatar";
- Xml::add_element($doc, $author, "link", "", $attributes);
+ XML::add_element($doc, $author, "link", "", $attributes);
if ($hidewall) {
- Xml::add_element($doc, $author, "dfrn:hide", "true");
+ XML::add_element($doc, $author, "dfrn:hide", "true");
}
// The following fields will only be generated if the data isn't meant for a public feed
$birthday = feed_birthday($owner['uid'], $owner['timezone']);
if ($birthday) {
- Xml::add_element($doc, $author, "dfrn:birthday", $birthday);
+ XML::add_element($doc, $author, "dfrn:birthday", $birthday);
}
// Only show contact details when we are allowed to
if (DBM::is_result($r)) {
$profile = $r[0];
- Xml::add_element($doc, $author, "poco:displayName", $profile["name"]);
- Xml::add_element($doc, $author, "poco:updated", $namdate);
+ XML::add_element($doc, $author, "poco:displayName", $profile["name"]);
+ XML::add_element($doc, $author, "poco:updated", $namdate);
if (trim($profile["dob"]) > '0001-01-01') {
- Xml::add_element($doc, $author, "poco:birthday", "0000-".date("m-d", strtotime($profile["dob"])));
+ XML::add_element($doc, $author, "poco:birthday", "0000-".date("m-d", strtotime($profile["dob"])));
}
- Xml::add_element($doc, $author, "poco:note", $profile["about"]);
- Xml::add_element($doc, $author, "poco:preferredUsername", $profile["nickname"]);
+ XML::add_element($doc, $author, "poco:note", $profile["about"]);
+ XML::add_element($doc, $author, "poco:preferredUsername", $profile["nickname"]);
$savetz = date_default_timezone_get();
date_default_timezone_set($profile["timezone"]);
- Xml::add_element($doc, $author, "poco:utcOffset", date("P"));
+ XML::add_element($doc, $author, "poco:utcOffset", date("P"));
date_default_timezone_set($savetz);
if (trim($profile["homepage"]) != "") {
$urls = $doc->createElement("poco:urls");
- Xml::add_element($doc, $urls, "poco:type", "homepage");
- Xml::add_element($doc, $urls, "poco:value", $profile["homepage"]);
- Xml::add_element($doc, $urls, "poco:primary", "true");
+ XML::add_element($doc, $urls, "poco:type", "homepage");
+ XML::add_element($doc, $urls, "poco:value", $profile["homepage"]);
+ XML::add_element($doc, $urls, "poco:primary", "true");
$author->appendChild($urls);
}
if (trim($profile["pub_keywords"]) != "") {
$keywords = explode(",", $profile["pub_keywords"]);
- foreach ($keywords AS $keyword) {
- Xml::add_element($doc, $author, "poco:tags", trim($keyword));
+ foreach ($keywords as $keyword) {
+ XML::add_element($doc, $author, "poco:tags", trim($keyword));
}
}
if (trim($profile["xmpp"]) != "") {
$ims = $doc->createElement("poco:ims");
- Xml::add_element($doc, $ims, "poco:type", "xmpp");
- Xml::add_element($doc, $ims, "poco:value", $profile["xmpp"]);
- Xml::add_element($doc, $ims, "poco:primary", "true");
+ XML::add_element($doc, $ims, "poco:type", "xmpp");
+ XML::add_element($doc, $ims, "poco:value", $profile["xmpp"]);
+ XML::add_element($doc, $ims, "poco:primary", "true");
$author->appendChild($ims);
}
if (trim($profile["locality"].$profile["region"].$profile["country-name"]) != "") {
$element = $doc->createElement("poco:address");
- Xml::add_element($doc, $element, "poco:formatted", formatted_location($profile));
+ XML::add_element($doc, $element, "poco:formatted", Profile::formatLocation($profile));
if (trim($profile["locality"]) != "") {
- Xml::add_element($doc, $element, "poco:locality", $profile["locality"]);
+ XML::add_element($doc, $element, "poco:locality", $profile["locality"]);
}
if (trim($profile["region"]) != "") {
- Xml::add_element($doc, $element, "poco:region", $profile["region"]);
+ XML::add_element($doc, $element, "poco:region", $profile["region"]);
}
if (trim($profile["country-name"]) != "") {
- Xml::add_element($doc, $element, "poco:country", $profile["country-name"]);
+ XML::add_element($doc, $element, "poco:country", $profile["country-name"]);
}
$author->appendChild($element);
*/
private static function add_entry_author($doc, $element, $contact_url, $item)
{
-
- $contact = get_contact_details_by_url($contact_url, $item["uid"]);
+ $contact = Contact::getDetailsByURL($contact_url, $item["uid"]);
$author = $doc->createElement($element);
- Xml::add_element($doc, $author, "name", $contact["name"]);
- Xml::add_element($doc, $author, "uri", $contact["url"]);
- Xml::add_element($doc, $author, "dfrn:handle", $contact["addr"]);
+ XML::add_element($doc, $author, "name", $contact["name"]);
+ XML::add_element($doc, $author, "uri", $contact["url"]);
+ XML::add_element($doc, $author, "dfrn:handle", $contact["addr"]);
/// @Todo
/// - Check real image type and image size
"media:width" => 80,
"media:height" => 80,
"href" => $contact["photo"]);
- Xml::add_element($doc, $author, "link", "", $attributes);
+ XML::add_element($doc, $author, "link", "", $attributes);
$attributes = array(
"rel" => "avatar",
"media:width" => 80,
"media:height" => 80,
"href" => $contact["photo"]);
- Xml::add_element($doc, $author, "link", "", $attributes);
+ XML::add_element($doc, $author, "link", "", $attributes);
return $author;
}
return false;
}
if ($r->type) {
- Xml::add_element($doc, $entry, "activity:object-type", $r->type);
+ XML::add_element($doc, $entry, "activity:object-type", $r->type);
}
if ($r->id) {
- Xml::add_element($doc, $entry, "id", $r->id);
+ XML::add_element($doc, $entry, "id", $r->id);
}
if ($r->title) {
- Xml::add_element($doc, $entry, "title", $r->title);
+ XML::add_element($doc, $entry, "title", $r->title);
}
if ($r->link) {
if (is_object($data)) {
foreach ($data->link AS $link) {
$attributes = array();
- foreach ($link->attributes() AS $parameter => $value) {
+ foreach ($link->attributes() as $parameter => $value) {
$attributes[$parameter] = $value;
}
- Xml::add_element($doc, $entry, "link", "", $attributes);
+ XML::add_element($doc, $entry, "link", "", $attributes);
}
}
} else {
$attributes = array("rel" => "alternate", "type" => "text/html", "href" => $r->link);
- Xml::add_element($doc, $entry, "link", "", $attributes);
+ XML::add_element($doc, $entry, "link", "", $attributes);
}
}
if ($r->content) {
- Xml::add_element($doc, $entry, "content", bbcode($r->content), array("type" => "html"));
+ XML::add_element($doc, $entry, "content", bbcode($r->content), array("type" => "html"));
}
return $entry;
$attributes["title"] = trim($matches[4]);
}
- Xml::add_element($doc, $root, "link", "", $attributes);
+ XML::add_element($doc, $root, "link", "", $attributes);
}
}
}
if ($item['deleted']) {
$attributes = array("ref" => $item['uri'], "when" => datetime_convert('UTC', 'UTC', $item['edited'] . '+00:00', ATOM_TIME));
- return Xml::create_element($doc, "at:deleted-entry", "", $attributes);
+ return XML::create_element($doc, "at:deleted-entry", "", $attributes);
}
if (!$single) {
$attributes = array("ref" => $parent_item, "type" => "text/html",
"href" => $parent[0]['plink'],
"dfrn:diaspora_guid" => $parent[0]['guid']);
- Xml::add_element($doc, $entry, "thr:in-reply-to", "", $attributes);
+ XML::add_element($doc, $entry, "thr:in-reply-to", "", $attributes);
}
// Add conversation data. This is used for OStatus
"href" => $conversation_href,
"ref" => $conversation_uri);
- Xml::add_element($doc, $entry, "ostatus:conversation", $conversation_uri, $attributes);
+ XML::add_element($doc, $entry, "ostatus:conversation", $conversation_uri, $attributes);
- Xml::add_element($doc, $entry, "id", $item["uri"]);
- Xml::add_element($doc, $entry, "title", $item["title"]);
+ XML::add_element($doc, $entry, "id", $item["uri"]);
+ XML::add_element($doc, $entry, "title", $item["title"]);
- Xml::add_element($doc, $entry, "published", datetime_convert("UTC", "UTC", $item["created"] . "+00:00", ATOM_TIME));
- Xml::add_element($doc, $entry, "updated", datetime_convert("UTC", "UTC", $item["edited"] . "+00:00", ATOM_TIME));
+ XML::add_element($doc, $entry, "published", datetime_convert("UTC", "UTC", $item["created"] . "+00:00", ATOM_TIME));
+ XML::add_element($doc, $entry, "updated", datetime_convert("UTC", "UTC", $item["edited"] . "+00:00", ATOM_TIME));
// "dfrn:env" is used to read the content
- Xml::add_element($doc, $entry, "dfrn:env", base64url_encode($body, true));
+ XML::add_element($doc, $entry, "dfrn:env", base64url_encode($body, true));
// The "content" field is not read by the receiver. We could remove it when the type is "text"
// We keep it at the moment, maybe there is some old version that doesn't read "dfrn:env"
- Xml::add_element($doc, $entry, "content", (($type == 'html') ? $htmlbody : $body), array("type" => $type));
+ XML::add_element($doc, $entry, "content", (($type == 'html') ? $htmlbody : $body), array("type" => $type));
// We save this value in "plink". Maybe we should read it from there as well?
- Xml::add_element(
+ XML::add_element(
$doc,
$entry,
"link",
// "comment-allow" is some old fashioned stuff for old Friendica versions.
// It is included in the rewritten code for completeness
if ($comment) {
- Xml::add_element($doc, $entry, "dfrn:comment-allow", intval($item['last-child']));
+ XML::add_element($doc, $entry, "dfrn:comment-allow", intval($item['last-child']));
}
if ($item['location']) {
- Xml::add_element($doc, $entry, "dfrn:location", $item['location']);
+ XML::add_element($doc, $entry, "dfrn:location", $item['location']);
}
if ($item['coord']) {
- Xml::add_element($doc, $entry, "georss:point", $item['coord']);
+ XML::add_element($doc, $entry, "georss:point", $item['coord']);
}
if (($item['private']) || strlen($item['allow_cid']) || strlen($item['allow_gid']) || strlen($item['deny_cid']) || strlen($item['deny_gid'])) {
- Xml::add_element($doc, $entry, "dfrn:private", (($item['private']) ? $item['private'] : 1));
+ XML::add_element($doc, $entry, "dfrn:private", (($item['private']) ? $item['private'] : 1));
}
if ($item['extid']) {
- Xml::add_element($doc, $entry, "dfrn:extid", $item['extid']);
+ XML::add_element($doc, $entry, "dfrn:extid", $item['extid']);
}
if ($item['bookmark']) {
- Xml::add_element($doc, $entry, "dfrn:bookmark", "true");
+ XML::add_element($doc, $entry, "dfrn:bookmark", "true");
}
if ($item['app']) {
- Xml::add_element($doc, $entry, "statusnet:notice_info", "", array("local_id" => $item['id'], "source" => $item['app']));
+ XML::add_element($doc, $entry, "statusnet:notice_info", "", array("local_id" => $item['id'], "source" => $item['app']));
}
- Xml::add_element($doc, $entry, "dfrn:diaspora_guid", $item["guid"]);
+ XML::add_element($doc, $entry, "dfrn:diaspora_guid", $item["guid"]);
// The signed text contains the content in Markdown, the sender handle and the signatur for the content
// It is needed for relayed comments to Diaspora.
if ($item['signed_text']) {
$sign = base64_encode(json_encode(array('signed_text' => $item['signed_text'],'signature' => $item['signature'],'signer' => $item['signer'])));
- Xml::add_element($doc, $entry, "dfrn:diaspora_signature", $sign);
+ XML::add_element($doc, $entry, "dfrn:diaspora_signature", $sign);
}
- Xml::add_element($doc, $entry, "activity:verb", construct_verb($item));
+ XML::add_element($doc, $entry, "activity:verb", construct_verb($item));
if ($item['object-type'] != "") {
- Xml::add_element($doc, $entry, "activity:object-type", $item['object-type']);
+ XML::add_element($doc, $entry, "activity:object-type", $item['object-type']);
} elseif ($item['id'] == $item['parent']) {
- Xml::add_element($doc, $entry, "activity:object-type", ACTIVITY_OBJ_NOTE);
+ XML::add_element($doc, $entry, "activity:object-type", ACTIVITY_OBJ_NOTE);
} else {
- Xml::add_element($doc, $entry, "activity:object-type", ACTIVITY_OBJ_COMMENT);
+ XML::add_element($doc, $entry, "activity:object-type", ACTIVITY_OBJ_COMMENT);
}
$actobj = self::create_activity($doc, "activity:object", $item['object']);
if (count($tags)) {
foreach ($tags as $t) {
if (($type != 'html') || ($t[0] != "@")) {
- Xml::add_element($doc, $entry, "category", "", array("scheme" => "X-DFRN:".$t[0].":".$t[1], "term" => $t[2]));
+ XML::add_element($doc, $entry, "category", "", array("scheme" => "X-DFRN:".$t[0].":".$t[1], "term" => $t[2]));
}
}
}
}
}
- foreach ($mentioned AS $mention) {
+ foreach ($mentioned as $mention) {
$r = q(
"SELECT `forum`, `prv` FROM `contact` WHERE `uid` = %d AND `nurl` = '%s'",
intval($owner["uid"]),
);
if (DBM::is_result($r) && ($r[0]["forum"] || $r[0]["prv"])) {
- Xml::add_element(
+ XML::add_element(
$doc,
$entry,
"link",
"href" => $mention)
);
} else {
- Xml::add_element(
+ XML::add_element(
$doc,
$entry,
"link",
if ($contact['term-date'] > NULL_DATE) {
logger("dfrn_deliver: $url back from the dead - removing mark for death");
- include_once 'include/Contact.php';
- unmark_for_death($contact);
+ Contact::unmarkForArchival($contact);
}
$res = parse_xml_string($xml);
$poco["photo"] = $author["avatar"];
$poco["hide"] = $hide;
$poco["contact-type"] = $contact["contact-type"];
- $gcid = update_gcontact($poco);
+ $gcid = GlobalContact::update($poco);
- link_gcontact($gcid, $importer["uid"], $contact["id"]);
+ GlobalContact::link($gcid, $importer["uid"], $contact["id"]);
}
return($author);
$obj_element = $obj_doc->createElementNS(NAMESPACE_ATOM1, $element);
$activity_type = $xpath->query("activity:object-type/text()", $activity)->item(0)->nodeValue;
- Xml::add_element($obj_doc, $obj_element, "type", $activity_type);
+ XML::add_element($obj_doc, $obj_element, "type", $activity_type);
$id = $xpath->query("atom:id", $activity)->item(0);
if (is_object($id)) {
$changed = true;
if ($entrytype == DFRN_REPLY_RC) {
- Worker::add(PRIORITY_HIGH, "notifier", "comment-import", $current["id"]);
+ Worker::add(PRIORITY_HIGH, "Notifier", "comment-import", $current["id"]);
}
}
if ($posted_id && $parent && ($entrytype == DFRN_REPLY_RC)) {
logger("Notifying followers about comment ".$posted_id, LOGGER_DEBUG);
- Worker::add(PRIORITY_HIGH, "notifier", "comment-import", $posted_id);
+ Worker::add(PRIORITY_HIGH, "Notifier", "comment-import", $posted_id);
}
return true;
if ($entrytype == DFRN_REPLY_RC) {
logger("Notifying followers about deletion of post " . $item["id"], LOGGER_DEBUG);
- Worker::add(PRIORITY_HIGH, "notifier", "drop", $item["id"]);
+ Worker::add(PRIORITY_HIGH, "Notifier", "drop", $item["id"]);
}
}
}