Let's avoid local variables

This commit is contained in:
Roland Häder 2022-06-20 21:31:55 +02:00
parent d39717a2d5
commit 04466968dc
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77

View file

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