merge
This commit is contained in:
parent
cca389f1b0
commit
7764f4651c
17 changed files with 40 additions and 47 deletions
|
|
@ -15,9 +15,9 @@ function getFileData($file) {
|
|||
$data['tags'] = $file->tags()->split();
|
||||
};
|
||||
|
||||
if($file->comments()->exists()) {
|
||||
$data['comments'] = Data::decode($file->comments()->value(), 'yaml');
|
||||
}
|
||||
if($file->extension() == "pdf") {
|
||||
$data['comments'] = $file->comments()->exists() && $file->comments() ? Data::decode($file->comments()->value(), 'yaml') : [];
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue