From 88d7b5037d07eed30971aff481f70f876df4c5c7 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Tue, 11 Apr 2017 10:18:14 +0200 Subject: [PATCH] makes allmutes api work with basicauth, thanks @lambadalambda --- actions/apiqvittermutes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/apiqvittermutes.php b/actions/apiqvittermutes.php index ec56189..8ad2638 100644 --- a/actions/apiqvittermutes.php +++ b/actions/apiqvittermutes.php @@ -74,7 +74,7 @@ class ApiQvitterMutesAction extends ApiPrivateAuthAction { parent::handle(); - $this->target = Profile::current(); + $this->target = $this->scoped; if(!$this->target instanceof Profile) { $this->clientError(_('You have to be logged in to view your mutes.'), 403);