Fix a notice about an undefined "attach" index

This commit is contained in:
Michael 2019-12-06 04:34:20 +00:00
parent 043df55bc5
commit 4b2acb74d5

View File

@ -2567,7 +2567,7 @@ class Diaspora
}
if ($stored) {
$fields = ['body', 'tag', 'app', 'created', 'object-type', 'uri', 'guid',
$fields = ['body', 'title', 'attach', 'tag', 'app', 'created', 'object-type', 'uri', 'guid',
'author-name', 'author-link', 'author-avatar'];
$condition = ['guid' => $guid, 'visible' => true, 'deleted' => false, 'private' => false];
$item = Item::selectFirst($fields, $condition);