We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d61375cb authored by mattl's avatar mattl

Group autocompletion now fills in hostname part

parent 4c8a8848
...@@ -66,7 +66,9 @@ class AutocompleteAction extends Action ...@@ -66,7 +66,9 @@ class AutocompleteAction extends Action
foreach($this->groups as $group){ foreach($this->groups as $group){
$max = max($max,strtotime($group->modified)); $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 ...@@ -161,7 +163,7 @@ class AutocompleteAction extends Action
$acct = $profile->getAcctUri(); $acct = $profile->getAcctUri();
$identifier = explode(':', $profile->getAcctUri(), 2)[1]; $identifier = explode(':', $profile->getAcctUri(), 2)[1];
$results[] = array( $results[] = array(
'value' => '!'.$group->getNickname(), 'value' => '!'.$identifier,
'nickname' => $group->getNickname(), 'nickname' => $group->getNickname(),
'acct_uri' => $acct, 'acct_uri' => $acct,
'label'=> "${identifier} (".$group->getFullname().")", 'label'=> "${identifier} (".$group->getFullname().")",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment