Add Group as a possible ActionLog object
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
6332f0534d
commit
c58e54d5b9
|
@ -190,6 +190,12 @@ export const LOGS = gql`
|
||||||
domain
|
domain
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
|
... on Group {
|
||||||
|
id
|
||||||
|
preferredUsername
|
||||||
|
domain
|
||||||
|
name
|
||||||
|
}
|
||||||
... on User {
|
... on User {
|
||||||
id
|
id
|
||||||
email
|
email
|
||||||
|
|
|
@ -29,7 +29,7 @@ defmodule Mobilizon.GraphQL.Schema.Actors.GroupType do
|
||||||
Represents a group of actors
|
Represents a group of actors
|
||||||
"""
|
"""
|
||||||
object :group do
|
object :group do
|
||||||
interfaces([:actor, :interactable, :activity_object])
|
interfaces([:actor, :interactable, :activity_object, :action_log_object])
|
||||||
|
|
||||||
field(:id, :id, description: "Internal ID for this group")
|
field(:id, :id, description: "Internal ID for this group")
|
||||||
field(:url, :string, description: "The ActivityPub actor's URL")
|
field(:url, :string, description: "The ActivityPub actor's URL")
|
||||||
|
|
|
@ -62,6 +62,9 @@ defmodule Mobilizon.GraphQL.Schema.AdminType do
|
||||||
%User{}, _ ->
|
%User{}, _ ->
|
||||||
:user
|
:user
|
||||||
|
|
||||||
|
%Actor{type: "Group"}, _ ->
|
||||||
|
:group
|
||||||
|
|
||||||
_, _ ->
|
_, _ ->
|
||||||
nil
|
nil
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue