From 07008af9c15bbe2ed431f97e9429b03642ec8820 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 16 Feb 2025 06:12:49 +0000 Subject: [PATCH] Bluesky: Avoid duplicated reshares --- bluesky/bluesky.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bluesky/bluesky.php b/bluesky/bluesky.php index 7f6bb9e7..ba80660c 100644 --- a/bluesky/bluesky.php +++ b/bluesky/bluesky.php @@ -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'];