From 4bece2095413a924ca8081b1f889bd0f6de9a55a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Mon, 20 May 2019 19:36:52 -0600 Subject: [PATCH] Update StatusPipeline --- app/Jobs/StatusPipeline/StatusEntityLexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/StatusPipeline/StatusEntityLexer.php b/app/Jobs/StatusPipeline/StatusEntityLexer.php index dd1c352a..df1ed677 100644 --- a/app/Jobs/StatusPipeline/StatusEntityLexer.php +++ b/app/Jobs/StatusPipeline/StatusEntityLexer.php @@ -112,7 +112,7 @@ class StatusEntityLexer implements ShouldQueue $status = $this->status; foreach ($mentions as $mention) { - $mentioned = Profile::whereUsername($mention)->firstOrFail(); + $mentioned = Profile::whereNull('domain')->whereUsername($mention)->firstOrFail(); if (empty($mentioned) || !isset($mentioned->id)) { continue;