some info code for usersalmon.php
This commit is contained in:
parent
e4c4f90c8a
commit
a9599d53c5
|
@ -205,6 +205,8 @@ class OStatusPlugin extends Plugin
|
|||
|
||||
if (!empty($oprofile) && !empty($oprofile->salmonuri)) {
|
||||
|
||||
common_log(LOG_INFO, "Sending notice '{$notice->uri}' to remote profile '{$oprofile->uri}'.");
|
||||
|
||||
// FIXME: this needs to go out in a queue handler
|
||||
|
||||
$xml = '<?xml version="1.0" encoding="UTF-8" ?>';
|
||||
|
|
|
@ -55,6 +55,8 @@ class UsersalmonAction extends SalmonAction
|
|||
*/
|
||||
function handlePost()
|
||||
{
|
||||
common_log(LOG_INFO, "Received post of '{$this->act->object->id}' from '{$this->act->actor->id}'");
|
||||
|
||||
switch ($this->act->object->type) {
|
||||
case ActivityObject::ARTICLE:
|
||||
case ActivityObject::BLOGENTRY:
|
||||
|
@ -92,6 +94,7 @@ class UsersalmonAction extends SalmonAction
|
|||
|
||||
if (!empty($existing)) {
|
||||
common_log(LOG_ERR, "Not saving notice '{$existing->uri}'; already exists.");
|
||||
return;
|
||||
}
|
||||
|
||||
$this->saveNotice();
|
||||
|
|
Loading…
Reference in New Issue
Block a user