mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-11 23:34:26 +02:00
Use "failed" field
This commit is contained in:
parent
ebcf757244
commit
5bf813d0ec
9 changed files with 22 additions and 24 deletions
|
@ -180,7 +180,7 @@ class Search
|
|||
$count = DBA::count('gcontact', [
|
||||
'NOT `hide`
|
||||
AND `network` IN (?, ?, ?, ?)
|
||||
AND ((`last_contact` >= `last_failure`) OR (`updated` >= `last_failure`))
|
||||
AND NOT `failed`
|
||||
AND (`url` LIKE ? OR `name` LIKE ? OR `location` LIKE ?
|
||||
OR `addr` LIKE ? OR `about` LIKE ? OR `keywords` LIKE ?)
|
||||
AND `community` = ?',
|
||||
|
@ -199,7 +199,7 @@ class Search
|
|||
$data = DBA::select('gcontact', ['nurl', 'name', 'addr', 'url', 'photo', 'network', 'keywords'], [
|
||||
'NOT `hide`
|
||||
AND `network` IN (?, ?, ?, ?)
|
||||
AND ((`last_contact` >= `last_failure`) OR (`updated` >= `last_failure`))
|
||||
AND NOT `failed`
|
||||
AND (`url` LIKE ? OR `name` LIKE ? OR `location` LIKE ?
|
||||
OR `addr` LIKE ? OR `about` LIKE ? OR `keywords` LIKE ?)
|
||||
AND `community` = ?',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue