Skip to content

Commit

Permalink
Each embedded objectID may only be returned once
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyperghost committed Sep 20, 2024
1 parent 8e053bd commit 0bc6f29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedDat
}
}

return $mediaIDs;
return \array_unique($mediaIDs);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ public function parse(HtmlInputProcessor $htmlInputProcessor, array $embeddedDat
}
}

return $unfurlUrlIDs;
return \array_unique($unfurlUrlIDs);
}
}

0 comments on commit 0bc6f29

Please sign in to comment.