Merge pull request #14006 from annando/accounttype

Fix accounttype/nosharer url
This commit is contained in:
Hypolite Petovan 2024-03-16 17:19:55 +00:00 committed by GitHub
commit 7331e44a1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,11 +178,11 @@ class Timeline extends BaseModule
protected function getNoSharerWidget(string $base): string
{
$path = $this->selectedTab;
if (!empty($this->accountTypeString)) {
$path .= '/' . $this->accountTypeString;
}
$query_parameters = [];
$query_parameters = [];
if (!empty($this->accountTypeString)) {
$query_parameters['accounttype'] = $this->accountTypeString;
}
if (!empty($this->minId)) {
$query_parameters['min_id'] = $this->minId;
}