From 9b19688d6566b776e244273cc9907bd43b54b005 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 11 Jul 2017 21:16:30 +0200 Subject: [PATCH] Another solution to merge request !146 --- actions/showstream.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/actions/showstream.php b/actions/showstream.php index 6fe9451633..79a3706d77 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -230,13 +230,14 @@ class ShowstreamAction extends NoticestreamAction $this->showEmptyListMessage(); } - $args = array('nickname' => $this->target->getNickname()); + // either nickname or id will be used, depending on which action (showstream, userbyid...) + $args = array('nickname' => $this->target->getNickname(), 'id' => $this->target->getID()); if (!empty($this->tag)) { $args['tag'] = $this->tag; } $this->pagination($this->page>1, $cnt>NOTICES_PER_PAGE, $this->page, - 'showstream', $args); + $this->getActionName(), $args); } function showAnonymousMessage() -- 2.39.5