From d61375cb7fd9e3ac2dbba2b22d0d6461fb753892 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 10 Aug 2017 12:41:47 +0200 Subject: [PATCH] Group autocompletion now fills in hostname part --- plugins/Autocomplete/actions/autocomplete.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/Autocomplete/actions/autocomplete.php b/plugins/Autocomplete/actions/autocomplete.php index 04acaefd38..a5478f9432 100644 --- a/plugins/Autocomplete/actions/autocomplete.php +++ b/plugins/Autocomplete/actions/autocomplete.php @@ -66,7 +66,9 @@ class AutocompleteAction extends Action foreach($this->groups as $group){ $max = max($max,strtotime($group->modified)); } - return $max; + // but maybe this file has been modified after that and could + // respond differently + return max($max, filemtime(__FILE__)); } /** @@ -161,7 +163,7 @@ class AutocompleteAction extends Action $acct = $profile->getAcctUri(); $identifier = explode(':', $profile->getAcctUri(), 2)[1]; $results[] = array( - 'value' => '!'.$group->getNickname(), + 'value' => '!'.$identifier, 'nickname' => $group->getNickname(), 'acct_uri' => $acct, 'label'=> "${identifier} (".$group->getFullname().")", -- 2.39.5