mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-23 08:22:50 +00:00
289ba03960
An event can indeed have several address types Signed-off-by: Thomas Citharel <tcit@tcit.fr>
18 lines
489 B
Elixir
18 lines
489 B
Elixir
defmodule MobilizonWeb.Schema.Actors.FollowerType do
|
|
@moduledoc """
|
|
Schema representation for Follower
|
|
"""
|
|
use Absinthe.Schema.Notation
|
|
|
|
@desc """
|
|
Represents an actor's follower
|
|
"""
|
|
object :follower do
|
|
field(:target_actor, :actor, description: "What or who the profile follows")
|
|
field(:actor, :actor, description: "Which profile follows")
|
|
|
|
field(:approved, :boolean,
|
|
description: "Whether the follow has been approved by the target actor"
|
|
)
|
|
end
|
|
end
|