Fix for regression with OStatus mention processing (duplicated new and old style lead to trying to save a reply entry twice).

This commit is contained in:
Brion Vibber
2010-08-10 13:36:38 -07:00
parent 4fdfc6b1ce
commit 08fc6053ec
3 changed files with 9 additions and 6 deletions

View File

@@ -681,7 +681,7 @@ class Ostatus_profile extends Memcached_DataObject
common_log(LOG_DEBUG, "Original reply recipients: " . implode(', ', $attention_uris));
$groups = array();
$replies = array();
foreach ($attention_uris as $recipient) {
foreach (array_unique($attention_uris) as $recipient) {
// Is the recipient a local user?
$user = User::staticGet('uri', $recipient);
if ($user) {