Bluesky: Avoid duplicated reshares

pull/1601/head
Michael 2025-02-16 06:12:49 +00:00
parent 0fb2c05244
commit 07008af9c1
1 changed files with 4 additions and 0 deletions

View File

@ -1005,6 +1005,10 @@ function bluesky_process_reason(stdClass $reason, string $uri, int $uid)
return;
}
if (Post::exists(['uid' => $item['uid'], 'thr-parent' => $item['thr-parent'], 'verb' => $item['verb'], 'contact-id' => $item['contact-id']])) {
return;
}
$item['guid'] = Item::guidFromUri($item['uri'], $contact['alias']);
$item['owner-name'] = $item['author-name'];
$item['owner-link'] = $item['author-link'];