Update src/Model/Contact.php

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
Michael Vogel 2021-10-02 20:31:30 +02:00 committed by GitHub
parent c822cdaebd
commit a2f5190bdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1392,7 +1392,7 @@ class Contact
}
}
If ($only_media) {
if ($only_media) {
$condition = DBA::mergeConditions($condition, ["`uri-id` IN (SELECT `uri-id` FROM `post-media` WHERE `type` IN (?, ?, ?))",
Post\Media::AUDIO, Post\Media::IMAGE, Post\Media::VIDEO]);
}