mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-05-19 18:18:07 +00:00
Make get_or_create_service_actor_by_ap_id/3 use Service actor type by default
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
2113b28f69
commit
f5fd7df963
|
@ -2080,7 +2080,7 @@ defmodule Pleroma.User do
|
|||
Optionally takes nickname for addressing.
|
||||
"""
|
||||
@spec get_or_create_service_actor_by_ap_id(String.t(), String.t(), String.t()) :: User.t() | nil
|
||||
def get_or_create_service_actor_by_ap_id(uri, nickname, actor_type \\ "Person") do
|
||||
def get_or_create_service_actor_by_ap_id(uri, nickname, actor_type \\ "Service") do
|
||||
{_, user} =
|
||||
case get_cached_by_ap_id(uri) do
|
||||
nil ->
|
||||
|
|
Loading…
Reference in a new issue