fix application user
This commit is contained in:
parent
6f1a9a1f7f
commit
f4cab6647d
2 changed files with 6 additions and 2 deletions
|
@ -78,4 +78,8 @@ class Application_User extends Blog_User {
|
||||||
public function get_indexable() {
|
public function get_indexable() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function get_type() {
|
||||||
|
return $this->type;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,9 +116,9 @@ class Webfinger {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( 'Group' === $user->get_type() ) {
|
if ( 'Person' !== $user->get_type() ) {
|
||||||
$profile['links'][0]['properties'] = array(
|
$profile['links'][0]['properties'] = array(
|
||||||
'https://www.w3.org/ns/activitystreams#type' => 'Group',
|
'https://www.w3.org/ns/activitystreams#type' => $user->get_type(),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue