Skip to content

Commit 083f506

Browse files
committed
Update ap helpers, fix unset media name bug
1 parent c62ac02 commit 083f506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Util/ActivityPub/Helpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ public static function importNoteAttachment($data, Status $status)
674674
}
675675
$blurhash = isset($media['blurhash']) ? $media['blurhash'] : null;
676676
$license = isset($media['license']) ? License::nameToId($media['license']) : null;
677-
$caption = $media['name'] ? Purify::clean($media['name']) : null;
677+
$caption = isset($media['name']) ? Purify::clean($media['name']) : null;
678678

679679
$media = new Media();
680680
$media->blurhash = $blurhash;

0 commit comments

Comments
 (0)