mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update StatusEntityLexer
This commit is contained in:
parent
0077544779
commit
2f8d48a0d7
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue