double-quotes on follow_id

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/51/head
Maxence Lange 2018-11-22 11:28:52 -01:00
rodzic 783c736870
commit dc009d828f
1 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -115,7 +115,6 @@ class NotesRequestBuilder extends CoreRequestBuilder {
$expr = $qb->expr();
$func = $qb->func();
$dbConn = $this->dbConnection;
$pf = $this->defaultSelectAlias . '.';
$orX = $expr->orX();
@ -123,21 +122,21 @@ class NotesRequestBuilder extends CoreRequestBuilder {
$orX->add(
$expr->like(
$pf . 'to_array', $func->concat(
$expr->literal('%'), $func->concat('f.follow_id', $expr->literal('%'))
$expr->literal('%"'), $func->concat('f.follow_id', $expr->literal('"%'))
)
)
);
$orX->add(
$expr->like(
$pf . 'cc', $func->concat(
$expr->literal('%'), $func->concat('f.follow_id', $expr->literal('%'))
$expr->literal('%"'), $func->concat('f.follow_id', $expr->literal('"%'))
)
)
);
$orX->add(
$expr->like(
$pf . 'bcc', $func->concat(
$expr->literal('%'), $func->concat('f.follow_id', $expr->literal('%'))
$expr->literal('%"'), $func->concat('f.follow_id', $expr->literal('"%'))
)
)
);