X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=include%2Flike.php;h=9a8b9b957b0db24fd2d7f459eb5c24be1132ca4f;hb=5afedb28d4387eef580f7a6602016cc676d8d9e1;hp=4f26002719dcb1fabd5f143dddfce320d7ee3d3b;hpb=1f58bcc114928a5a3cd97bd0de34a5aa7d585931;p=friendica.git
diff --git a/include/like.php b/include/like.php
index 4f26002719..9a8b9b957b 100644
--- a/include/like.php
+++ b/include/like.php
@@ -1,8 +1,11 @@
$like_item['id']));
$like_item_id = $like_item['id'];
- proc_run(PRIORITY_HIGH, "include/notifier.php", "like", $like_item_id);
+ Worker::add(PRIORITY_HIGH, "Notifier", "like", $like_item_id);
if (!$event_verb_flag || $like_item['verb'] == $activity) {
return true;
@@ -183,7 +184,7 @@ function do_like($item_id, $verb) {
$post_type = t('event');
}
$objtype = $item['resource-id'] ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE ;
- $link = xmlify('' . "\n") ;
+ $link = xmlify('' . "\n") ;
$body = $item['body'];
$obj = <<< EOT
@@ -200,7 +201,7 @@ EOT;
$ulink = '[url=' . $author_contact['url'] . ']' . $author_contact['name'] . '[/url]';
$alink = '[url=' . $item['author-link'] . ']' . $item['author-name'] . '[/url]';
- $plink = '[url=' . App::get_baseurl() . '/display/' . $owner_self_contact['nick'] . '/' . $item['id'] . ']' . $post_type . '[/url]';
+ $plink = '[url=' . System::baseUrl() . '/display/' . $owner_self_contact['nick'] . '/' . $item['id'] . ']' . $post_type . '[/url]';
$new_item = array(
'guid' => get_guid(32),
@@ -246,13 +247,13 @@ EOT;
}
// Save the author information for the like in case we need to relay to Diaspora
- Diaspora::store_like_signature($item_contact, $new_item_id);
+ Diaspora::storeLikeSignature($item_contact, $new_item_id);
$new_item['id'] = $new_item_id;
call_hooks('post_local_end', $new_item);
- proc_run(PRIORITY_HIGH, "include/notifier.php", "like", $new_item_id);
+ Worker::add(PRIORITY_HIGH, "Notifier", "like", $new_item_id);
return true;
}