Add Group as a possible ActionLog object

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-04-27 16:51:28 +02:00
parent 6332f0534d
commit c58e54d5b9
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773
3 changed files with 10 additions and 1 deletions

View file

@ -190,6 +190,12 @@ export const LOGS = gql`
domain
name
}
... on Group {
id
preferredUsername
domain
name
}
... on User {
id
email

View file

@ -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")

View file

@ -62,6 +62,9 @@ defmodule Mobilizon.GraphQL.Schema.AdminType do
%User{}, _ ->
:user
%Actor{type: "Group"}, _ ->
:group
_, _ ->
nil
end)