]> git.mxchange.org Git - friendica-addons.git/commitdiff
Let's avoid local variables
authorRoland Häder <roland@mxchange.org>
Mon, 20 Jun 2022 19:31:55 +0000 (21:31 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 22 Jun 2022 16:19:52 +0000 (18:19 +0200)
advancedcontentfilter/advancedcontentfilter.php

index fecf9563bff6ad0b5b61e8a9ee6d60b782f95c82..9f6a7cff6aa00b0c822a1b9418688066e63897d8 100644 (file)
@@ -450,10 +450,7 @@ function advancedcontentfilter_prepare_item_row(array $item_row): array
        $item_row['tags'] = $tags['tags'];
        $item_row['hashtags'] = $tags['hashtags'];
        $item_row['mentions'] = $tags['mentions'];
-
-       $attachments = Post\Media::splitAttachments($item_row['uri-id'], $item_row['guid'] ?? '');
-
-       $item_row['attachments'] = $attachments;
+       $item_row['attachments'] = Post\Media::splitAttachments($item_row['uri-id'], $item_row['guid'] ?? '');
 
        return $item_row;
 }