Skip to content

Commit

Permalink
Update ap helpers, fix unset media name bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Feb 4, 2023
1 parent c62ac02 commit 083f506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Util/ActivityPub/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ public static function importNoteAttachment($data, Status $status)
}
$blurhash = isset($media['blurhash']) ? $media['blurhash'] : null;
$license = isset($media['license']) ? License::nameToId($media['license']) : null;
$caption = $media['name'] ? Purify::clean($media['name']) : null;
$caption = isset($media['name']) ? Purify::clean($media['name']) : null;

$media = new Media();
$media->blurhash = $blurhash;
Expand Down

0 comments on commit 083f506

Please sign in to comment.