Skip to content

Commit 4905f5b

Browse files
committed
fix: Fix validation for repost/like.
1 parent 4f31044 commit 4905f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supabase/functions/repost-bot/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function processTags(tags: AppBskyFeedDefs.PostView[]) {
4646
const exists = await mentionReposted(tag.cid);
4747
const liked = tag.viewer?.like;
4848

49-
if (exists && liked) {
49+
if (exists || liked) {
5050
console.log(`Already reposted: ${tag.cid}`);
5151
continue;
5252
}

0 commit comments

Comments
 (0)