mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-02-20 21:26:56 +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;
|
$status = $this->status;
|
||||||
|
|
||||||
foreach ($mentions as $mention) {
|
foreach ($mentions as $mention) {
|
||||||
$mentioned = Profile::whereNull('domain')->whereUsername($mention)->firstOrFail();
|
$mentioned = Profile::whereUsername($mention)->first();
|
||||||
|
|
||||||
if (empty($mentioned) || !isset($mentioned->id)) {
|
if (empty($mentioned) || !isset($mentioned->id)) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -132,7 +132,7 @@ class StatusEntityLexer implements ShouldQueue
|
||||||
|
|
||||||
public function deliver()
|
public function deliver()
|
||||||
{
|
{
|
||||||
if(config('pixelfed.activitypub_enabled') == true) {
|
if(config('federation.activitypub.enabled') == true) {
|
||||||
StatusActivityPubDeliver::dispatch($this->status);
|
StatusActivityPubDeliver::dispatch($this->status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue