don't save Notices that already exist in Salmon
This commit is contained in:
parent
48839a1fcf
commit
e4c4f90c8a
|
@ -88,6 +88,12 @@ class UsersalmonAction extends SalmonAction
|
|||
throw new ClientException("Not to anyone in reply to anything!");
|
||||
}
|
||||
|
||||
$existing = Notice::staticGet('uri', $this->act->object->id);
|
||||
|
||||
if (!empty($existing)) {
|
||||
common_log(LOG_ERR, "Not saving notice '{$existing->uri}'; already exists.");
|
||||
}
|
||||
|
||||
$this->saveNotice();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user