mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-14 02:24:31 +00:00
Update SharePipeline, federate self boosts
This commit is contained in:
parent
86cb7d0901
commit
0c59a55e6d
1 changed files with 9 additions and 1 deletions
|
@ -61,7 +61,12 @@ class SharePipeline implements ShouldQueue
|
||||||
->whereItemType('App\Status')
|
->whereItemType('App\Status')
|
||||||
->count();
|
->count();
|
||||||
|
|
||||||
if ($target->id === $status->profile_id || $exists !== 0) {
|
if ($target->id === $status->profile_id) {
|
||||||
|
$this->remoteAnnounceDeliver();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if( $exists !== 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,6 +93,9 @@ class SharePipeline implements ShouldQueue
|
||||||
|
|
||||||
public function remoteAnnounceDeliver()
|
public function remoteAnnounceDeliver()
|
||||||
{
|
{
|
||||||
|
if(config('federation.activitypub.enabled') == false) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
$status = $this->status;
|
$status = $this->status;
|
||||||
$profile = $status->profile;
|
$profile = $status->profile;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue