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
|
||||
name
|
||||
}
|
||||
... on Group {
|
||||
id
|
||||
preferredUsername
|
||||
domain
|
||||
name
|
||||
}
|
||||
... on User {
|
||||
id
|
||||
email
|
||||
|
|
|
@ -29,7 +29,7 @@ defmodule Mobilizon.GraphQL.Schema.Actors.GroupType do
|
|||
Represents a group of actors
|
||||
"""
|
||||
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(:url, :string, description: "The ActivityPub actor's URL")
|
||||
|
|
|
@ -62,6 +62,9 @@ defmodule Mobilizon.GraphQL.Schema.AdminType do
|
|||
%User{}, _ ->
|
||||
:user
|
||||
|
||||
%Actor{type: "Group"}, _ ->
|
||||
:group
|
||||
|
||||
_, _ ->
|
||||
nil
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue