Avoid duplicate media elements

This commit is contained in:
Michael 2022-11-13 23:38:48 +00:00
parent 21d1659982
commit 9506bf6989
2 changed files with 6 additions and 4 deletions

View file

@ -642,12 +642,11 @@ class Media
* Split the attachment media in the three segments "visual", "link" and "additional"
*
* @param int $uri_id URI id
* @param string $guid GUID
* @param array $links list of links that shouldn't be added
* @param bool $has_media
* @return array attachments
*/
public static function splitAttachments(int $uri_id, string $guid = '', array $links = [], bool $has_media = true): array
public static function splitAttachments(int $uri_id, array $links = [], bool $has_media = true): array
{
$attachments = ['visual' => [], 'link' => [], 'additional' => []];