(Hopefully) improve grammar

[CI skip]
This commit is contained in:
Damien
2019-10-15 21:18:03 +02:00
parent 5f934e3449
commit b98a86184b
19 changed files with 33 additions and 33 deletions

View File

@@ -172,7 +172,7 @@ defmodule MobilizonWeb.Resolvers.Event do
{:ok, participant}
else
{:maximum_attendee_capacity, _} ->
{:error, "The event has already reached it's maximum capacity"}
{:error, "The event has already reached its maximum capacity"}
{:has_event, _} ->
{:error, "Event with this ID #{inspect(event_id)} doesn't exist"}
@@ -329,7 +329,7 @@ defmodule MobilizonWeb.Resolvers.Event do
# If we have an attached picture, just transmit it. It will be handled by
# Mobilizon.Service.ActivityPub.Utils.make_picture_data/1
# However, we need to pass it's actor ID
# However, we need to pass its actor ID
@spec save_attached_picture(map()) :: {:ok, map()}
defp save_attached_picture(
%{picture: %{picture: %{file: %Plug.Upload{} = _picture} = all_pic}} = args

View File

@@ -14,7 +14,7 @@ defmodule MobilizonWeb.Resolvers.User do
require Logger
@doc """
Find an user by it's ID
Find an user by its ID
"""
def find_user(_parent, %{id: id}, _resolution) do
Users.get_user_with_actors(id)
@@ -128,7 +128,7 @@ defmodule MobilizonWeb.Resolvers.User do
end
@doc """
Validate an user, get it's actor and a token
Validate an user, get its actor and a token
"""
def validate_user(_parent, %{token: token}, _resolution) do
with {:check_confirmation_token, {:ok, %User{} = user}} <-

View File

@@ -89,7 +89,7 @@ defmodule MobilizonWeb.Schema.Actors.GroupType do
resolve(&Group.list_groups/3)
end
@desc "Get a group by it's preferred username"
@desc "Get a group by its preferred username"
field :group, :group do
arg(:preferred_username, non_null(:string))
resolve(&Group.find_group/3)

View File

@@ -70,13 +70,13 @@ defmodule MobilizonWeb.Schema.Actors.PersonType do
resolve(&Person.get_current_person/3)
end
@desc "Get a person by it's (federated) username"
@desc "Get a person by its (federated) username"
field :fetch_person, :person do
arg(:preferred_username, non_null(:string))
resolve(&Person.fetch_person/3)
end
@desc "Get a person by it's ID"
@desc "Get a person by its ID"
field :person, :person do
arg(:id, non_null(:id))
resolve(&Person.get_person/3)