Update StatusEntityLexer

This commit is contained in:
Daniel Supernault 2019-06-09 17:27:42 -06:00
parent 0077544779
commit 2f8d48a0d7
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -112,7 +112,7 @@ class StatusEntityLexer implements ShouldQueue
$status = $this->status;
foreach ($mentions as $mention) {
$mentioned = Profile::whereNull('domain')->whereUsername($mention)->firstOrFail();
$mentioned = Profile::whereUsername($mention)->first();
if (empty($mentioned) || !isset($mentioned->id)) {
continue;
@ -132,7 +132,7 @@ class StatusEntityLexer implements ShouldQueue
public function deliver()
{
if(config('pixelfed.activitypub_enabled') == true) {
if(config('federation.activitypub.enabled') == true) {
StatusActivityPubDeliver::dispatch($this->status);
}
}