projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'admin-configure-atom-keys' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
federator
/
publisher.ex
diff --git
a/lib/pleroma/web/federator/publisher.ex
b/lib/pleroma/web/federator/publisher.ex
index 916bcdcba9e721ec48eeba2cad36173005dbd44a..70f870244fbb5f7af1283985620004f3791522f7 100644
(file)
--- a/
lib/pleroma/web/federator/publisher.ex
+++ b/
lib/pleroma/web/federator/publisher.ex
@@
-31,7
+31,7
@@
defmodule Pleroma.Web.Federator.Publisher do
"""
@spec enqueue_one(module(), Map.t()) :: :ok
def enqueue_one(module, %{} = params),
"""
@spec enqueue_one(module(), Map.t()) :: :ok
def enqueue_one(module, %{} = params),
- do: PleromaJobQueue.enqueue(:federat
ion
_outgoing, __MODULE__, [:publish_one, module, params])
+ do: PleromaJobQueue.enqueue(:federat
or
_outgoing, __MODULE__, [:publish_one, module, params])
@spec perform(atom(), module(), any()) :: {:ok, any()} | {:error, any()}
def perform(:publish_one, module, params) do
@spec perform(atom(), module(), any()) :: {:ok, any()} | {:error, any()}
def perform(:publish_one, module, params) do
@@
-52,9
+52,9
@@
defmodule Pleroma.Web.Federator.Publisher do
@doc """
Relays an activity to all specified peers.
"""
@doc """
Relays an activity to all specified peers.
"""
- @callback publish(
Pleroma.User.t(), Pleroma.
Activity.t()) :: :ok | {:error, any()}
+ @callback publish(
User.t(),
Activity.t()) :: :ok | {:error, any()}
- @spec publish(
Pleroma.User.t(), Pleroma.
Activity.t()) :: :ok
+ @spec publish(
User.t(),
Activity.t()) :: :ok
def publish(%User{} = user, %Activity{} = activity) do
Config.get([:instance, :federation_publisher_modules])
|> Enum.each(fn module ->
def publish(%User{} = user, %Activity{} = activity) do
Config.get([:instance, :federation_publisher_modules])
|> Enum.each(fn module ->
@@
-70,9
+70,9
@@
defmodule Pleroma.Web.Federator.Publisher do
@doc """
Gathers links used by an outgoing federation module for WebFinger output.
"""
@doc """
Gathers links used by an outgoing federation module for WebFinger output.
"""
- @callback gather_webfinger_links(
Pleroma.
User.t()) :: list()
+ @callback gather_webfinger_links(User.t()) :: list()
- @spec gather_webfinger_links(
Pleroma.
User.t()) :: list()
+ @spec gather_webfinger_links(User.t()) :: list()
def gather_webfinger_links(%User{} = user) do
Config.get([:instance, :federation_publisher_modules])
|> Enum.reduce([], fn module, links ->
def gather_webfinger_links(%User{} = user) do
Config.get([:instance, :federation_publisher_modules])
|> Enum.reduce([], fn module, links ->