Skip to content

Commit

Permalink
fix media saving
Browse files Browse the repository at this point in the history
  • Loading branch information
PhieF committed Aug 14, 2023
1 parent e694e88 commit cf4e99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/NoteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ public function addMediaToOpenNote($id){
if(isset($preview)){
if(!isset($meta['previews']))
$meta['previews'] = array();
if(!in_array($meta['previews'],$preview))
if(!in_array($preview, $meta['previews']))
array_push($meta['previews'],$preview);
}
if(!isset($meta['media']))
Expand Down

0 comments on commit cf4e99d

Please sign in to comment.