Ver código fonte

relay: set invisible to true

merge-requests/1875/head
Ariadne Conill 4 anos atrás
pai
commit
1469a084d4
1 arquivos alterados com 6 adições e 2 exclusões
  1. +6
    -2
      lib/pleroma/web/activity_pub/relay.ex

+ 6
- 2
lib/pleroma/web/activity_pub/relay.ex Ver arquivo

@@ -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()}


Carregando…
Cancelar
Salvar