Merge pull request #4603 from annando/pleroma-like

OStatus: Likes from Pleroma will now work
This commit is contained in:
Hypolite Petovan 2018-03-15 17:42:53 -04:00 committed by GitHub
commit ba03991294
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -673,9 +673,11 @@ class OStatus
self::fetchConversation($item['conversation-href'], $item['conversation-uri']); self::fetchConversation($item['conversation-href'], $item['conversation-uri']);
} }
if (isset($item["parent-uri"]) && ($related != '')) { if (isset($item["parent-uri"])) {
if (!dba::exists('item', ['uid' => $importer["uid"], 'uri' => $item['parent-uri']])) { if (!dba::exists('item', ['uid' => $importer["uid"], 'uri' => $item['parent-uri']])) {
self::fetchRelated($related, $item["parent-uri"], $importer); if ($related != '') {
self::fetchRelated($related, $item["parent-uri"], $importer);
}
} else { } else {
logger('Reply with URI '.$item["uri"].' already existed for user '.$importer["uid"].'.', LOGGER_DEBUG); logger('Reply with URI '.$item["uri"].' already existed for user '.$importer["uid"].'.', LOGGER_DEBUG);
} }