Merge pull request #7910 from annando/notice

Fix a notice about an undefined "attach" index
This commit is contained in:
Tobias Diekershoff 2019-12-06 07:27:16 +01:00 committed by GitHub
commit 03e2b04e8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);