Update SharePipeline, federate self boosts

pull/1781/head
Daniel Supernault 2019-10-11 17:58:35 -06:00
rodzic 86cb7d0901
commit 0c59a55e6d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -61,7 +61,12 @@ class SharePipeline implements ShouldQueue
->whereItemType('App\Status')
->count();
if ($target->id === $status->profile_id || $exists !== 0) {
if ($target->id === $status->profile_id) {
$this->remoteAnnounceDeliver();
return true;
}
if( $exists !== 0) {
return true;
}
@ -88,6 +93,9 @@ class SharePipeline implements ShouldQueue
public function remoteAnnounceDeliver()
{
if(config('federation.activitypub.enabled') == false) {
return true;
}
$status = $this->status;
$profile = $status->profile;