mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-12-26 08:55:18 +01:00
relay: set invisible to true
This commit is contained in:
parent
e7333db72a
commit
1469a084d4
@ -10,8 +10,12 @@ defmodule Pleroma.Web.ActivityPub.Relay do
|
||||
require Logger
|
||||
|
||||
def get_actor do
|
||||
"#{Pleroma.Web.Endpoint.url()}/relay"
|
||||
|> User.get_or_create_service_actor_by_ap_id()
|
||||
actor =
|
||||
"#{Pleroma.Web.Endpoint.url()}/relay"
|
||||
|> User.get_or_create_service_actor_by_ap_id()
|
||||
|
||||
{:ok, actor} = User.update_info(actor, &User.Info.set_invisible(&1, true))
|
||||
actor
|
||||
end
|
||||
|
||||
@spec follow(String.t()) :: {:ok, Activity.t()} | {:error, any()}
|
||||
|
Loading…
Reference in New Issue
Block a user