Merge pull request #4804 from pixelfed/staging

Staging
pull/4815/head
daniel 2023-12-08 03:27:52 -07:00 zatwierdzone przez GitHub
commit f01f4bf23e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 1225 dodań i 1206 usunięć

Wyświetl plik

@ -79,7 +79,6 @@ class FeedInsertPipeline implements ShouldQueue, ShouldBeUniqueUntilProcessing
HomeTimelineService::add($this->pid, $this->sid);
$ids = FollowerService::localFollowerIds($this->pid);
if(!$ids || !count($ids)) {

Wyświetl plik

@ -713,9 +713,11 @@ class Inbox
if(!$status) {
return;
}
if($status->scope && $status->scope != 'direct') {
if($status->scope && in_array($status->scope, ['public', 'unlisted', 'private'])) {
if($status->type && !in_array($status->type, ['story:reaction', 'story:reply', 'reply'])) {
FeedRemoveRemotePipeline::dispatch($status->id, $status->profile_id)->onQueue('feed');
}
}
RemoteStatusDelete::dispatch($status)->onQueue('high');
return;
break;
@ -985,9 +987,18 @@ class Inbox
return;
}
$url = $id;
if(str_ends_with($url, '/activity')) {
$url = substr($url, 0, -9);
}
$status = new Status;
$status->profile_id = $actorProfile->id;
$status->type = 'story:reaction';
$status->url = $url;
$status->uri = $url;
$status->object_url = $url;
$status->caption = $text;
$status->rendered = $text;
$status->scope = 'direct';
@ -1094,11 +1105,20 @@ class Inbox
return;
}
$url = $id;
if(str_ends_with($url, '/activity')) {
$url = substr($url, 0, -9);
}
$status = new Status;
$status->profile_id = $actorProfile->id;
$status->type = 'story:reply';
$status->caption = $text;
$status->rendered = $text;
$status->url = $url;
$status->uri = $url;
$status->object_url = $url;
$status->scope = 'direct';
$status->visibility = 'direct';
$status->in_reply_to_profile_id = $story->profile_id;