From 04466968dcd4ccd796894a951b2ff821a83545b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 20 Jun 2022 21:31:55 +0200 Subject: [PATCH] Let's avoid local variables --- advancedcontentfilter/advancedcontentfilter.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/advancedcontentfilter/advancedcontentfilter.php b/advancedcontentfilter/advancedcontentfilter.php index fecf9563..9f6a7cff 100644 --- a/advancedcontentfilter/advancedcontentfilter.php +++ b/advancedcontentfilter/advancedcontentfilter.php @@ -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; } -- 2.39.5