summaryrefslogtreecommitdiff
path: root/plugins/OStatus/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-21 23:32:20 -0500
committerEvan Prodromou <evan@status.net>2010-02-21 23:32:20 -0500
commite4c4f90c8a303e566fa117fadb0004694b89ccc8 (patch)
treeb62b7809929efa59460394d68f3938feea664a67 /plugins/OStatus/actions
parent48839a1fcf0c94b877c7c3232cf3e34eb0a9f23e (diff)
don't save Notices that already exist in Salmon
Diffstat (limited to 'plugins/OStatus/actions')
-rw-r--r--plugins/OStatus/actions/usersalmon.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/OStatus/actions/usersalmon.php b/plugins/OStatus/actions/usersalmon.php
index ca0370bb4..8368eeccf 100644
--- a/plugins/OStatus/actions/usersalmon.php
+++ b/plugins/OStatus/actions/usersalmon.php
@@ -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();
}