- if (! can_write_wall($a, $item['uid'])) {
- logger('like: unable to write on wall ' . $item['uid']);
+ if (!can_write_wall($uid)) {
+ logger('like: unable to write on wall ' . $uid);
$like_item = $existing_like[0];
// Already voted, undo it
$like_item = $existing_like[0];
// Already voted, undo it
// Clean up the Diaspora signatures for this like
// Go ahead and do it even if Diaspora support is disabled. We still want to clean up
// if it had been enabled in the past
// Clean up the Diaspora signatures for this like
// Go ahead and do it even if Diaspora support is disabled. We still want to clean up
// if it had been enabled in the past
- Worker::add(PRIORITY_HIGH, "notifier", "like", $like_item_id);
+ Worker::add(PRIORITY_HIGH, "Notifier", "like", $like_item_id);
}
$objtype = $item['resource-id'] ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE ;
$link = xmlify('<link rel="alternate" type="text/html" href="' . System::baseUrl() . '/display/' . $owner_self_contact['nick'] . '/' . $item['id'] . '" />' . "\n") ;
}
$objtype = $item['resource-id'] ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE ;
$link = xmlify('<link rel="alternate" type="text/html" href="' . System::baseUrl() . '/display/' . $owner_self_contact['nick'] . '/' . $item['id'] . '" />' . "\n") ;
$alink = '[url=' . $item['author-link'] . ']' . $item['author-name'] . '[/url]';
$plink = '[url=' . System::baseUrl() . '/display/' . $owner_self_contact['nick'] . '/' . $item['id'] . ']' . $post_type . '[/url]';
$alink = '[url=' . $item['author-link'] . ']' . $item['author-name'] . '[/url]';
$plink = '[url=' . System::baseUrl() . '/display/' . $owner_self_contact['nick'] . '/' . $item['id'] . ']' . $post_type . '[/url]';
$new_item_id = item_store($new_item);
// @todo: Explain this block
if (! $item['visible']) {
$new_item_id = item_store($new_item);
// @todo: Explain this block
if (! $item['visible']) {
- Worker::add(PRIORITY_HIGH, "notifier", "like", $new_item_id);
+ Worker::add(PRIORITY_HIGH, "Notifier", "like", $new_item_id);