kopia lustrzana https://github.com/nextcloud/social
Update CacheActorsRequest.php
Signed-off-by: Emerson Kfuri <emersonkfuri@gmail.com>pull/344/head
rodzic
2247e2482c
commit
b353704548
|
@ -220,6 +220,9 @@ class CacheActorsRequest extends CacheActorsRequestBuilder {
|
|||
*/
|
||||
public function getFromLocalAccount(string $account): Person {
|
||||
$qb = $this->getCacheActorsSelectSql();
|
||||
if (strrpos($account, '@')) {
|
||||
$account = substr($account, 0, strrpos($account, '@'));
|
||||
}
|
||||
$this->limitToPreferredUsername($qb, $account);
|
||||
$this->limitToLocal($qb, true);
|
||||
$this->leftJoinCacheDocuments($qb, 'icon_id');
|
||||
|
|
Ładowanie…
Reference in New Issue