]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Group autocompletion now fills in hostname part
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 10 Aug 2017 10:41:47 +0000 (12:41 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 10 Aug 2017 10:41:47 +0000 (12:41 +0200)
plugins/Autocomplete/actions/autocomplete.php

index 04acaefd38c5a5557035ac79b4af1f78fcc93194..a5478f9432342c82603b07edeb95c700b3fe87fc 100644 (file)
@@ -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().")",