mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:50:11 +00:00
Avoid duplicate media elements
This commit is contained in:
parent
21d1659982
commit
9506bf6989
2 changed files with 6 additions and 4 deletions
|
@ -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' => []];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue