1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 08:14:10 +00:00

Update FollowerController, make follow and unfollow methods public

This commit is contained in:
Daniel Supernault 2019-09-24 21:20:53 -06:00
parent bd3f95415e
commit 6237897def
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -109,7 +109,7 @@ class FollowerController extends Controller
Cache::forget('user:account:id:'.$user->user_id);
}
protected function sendFollow($user, $target)
public function sendFollow($user, $target)
{
if($target->domain == null || $user->domain != null) {
return;
@ -117,7 +117,7 @@ class FollowerController extends Controller
$payload = [
'@context' => 'https://www.w3.org/ns/activitystreams',
'id' => $user->permalink('#follow/'.$target->id.''),
'id' => $user->permalink('#follow/'.$target->id),
'type' => 'Follow',
'actor' => $user->permalink(),
'object' => $target->permalink()
@ -128,7 +128,7 @@ class FollowerController extends Controller
Helpers::sendSignedObject($user, $inbox, $payload);
}
protected function sendUndoFollow($user, $target)
public function sendUndoFollow($user, $target)
{
if($target->domain == null || $user->domain != null) {
return;