mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Update Profile model
This commit is contained in:
parent
11749bdc6a
commit
908740b46f
1 changed files with 14 additions and 4 deletions
|
@ -275,10 +275,20 @@ class Profile extends Model
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
# code...
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
return $audience;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getAudienceInbox($scope = 'public')
|
||||||
|
{
|
||||||
|
return $this
|
||||||
|
->followers()
|
||||||
|
->whereLocalProfile(false)
|
||||||
|
->get()
|
||||||
|
->map(function($follow) {
|
||||||
|
return $follow->sharedInbox ?? $follow->inbox_url;
|
||||||
|
})
|
||||||
|
->unique()
|
||||||
|
->toArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue