diff --git a/js/src/graphql/actor.ts b/js/src/graphql/actor.ts index 3a1ec38d9..af9b244cc 100644 --- a/js/src/graphql/actor.ts +++ b/js/src/graphql/actor.ts @@ -17,7 +17,7 @@ export const ACTOR_FRAGMENT = gql` `; export const FETCH_PERSON = gql` - query ($username: String!) { + query FetchPerson($username: String!) { fetchPerson(preferredUsername: $username) { ...ActorFragment suspended diff --git a/js/src/graphql/followers.ts b/js/src/graphql/followers.ts index 565fc3806..c64d208ec 100644 --- a/js/src/graphql/followers.ts +++ b/js/src/graphql/followers.ts @@ -2,7 +2,7 @@ import gql from "graphql-tag"; import { ACTOR_FRAGMENT } from "./actor"; export const GROUP_FOLLOWERS = gql` - query ( + query GroupFollowers( $name: String! $followersPage: Int $followersLimit: Int diff --git a/js/src/graphql/member.ts b/js/src/graphql/member.ts index 4dc32f923..db5ca0a15 100644 --- a/js/src/graphql/member.ts +++ b/js/src/graphql/member.ts @@ -44,7 +44,7 @@ export const REJECT_INVITATION = gql` `; export const GROUP_MEMBERS = gql` - query ( + query GroupMembers( $groupName: String! $name: String $roles: String diff --git a/lib/federation/activity_pub/transmogrifier.ex b/lib/federation/activity_pub/transmogrifier.ex index 9efa6ccce..2e4580567 100644 --- a/lib/federation/activity_pub/transmogrifier.ex +++ b/lib/federation/activity_pub/transmogrifier.ex @@ -201,6 +201,10 @@ defmodule Mobilizon.Federation.ActivityPub.Transmogrifier do {:ok, entity} -> Actions.Delete.delete(entity, Relay.get_actor(), false) + + {:error, err} -> + Logger.warn("Error while fetching object from URL", error: inspect(err)) + :error end end diff --git a/lib/service/front_end_analytics/analytics.ex b/lib/service/front_end_analytics/analytics.ex index f58c6823c..dc914fccd 100644 --- a/lib/service/front_end_analytics/analytics.ex +++ b/lib/service/front_end_analytics/analytics.ex @@ -65,7 +65,7 @@ defmodule Mobilizon.Service.FrontEndAnalytics do defp merge_csp_config(config, global_config) do Keyword.merge(global_config, config, fn _key, global, config -> - "#{global} #{config}" + global ++ config end) end end