logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

internal_fetch_actor.ex (504B)


  1. # Pleroma: A lightweight social networking server
  2. # Copyright © 2017-2022 Pleroma Authors <https://pleroma.social/>
  3. # SPDX-License-Identifier: AGPL-3.0-only
  4. defmodule Pleroma.Web.ActivityPub.InternalFetchActor do
  5. alias Pleroma.User
  6. require Logger
  7. def init do
  8. # Wait for everything to settle.
  9. Process.sleep(1000 * 5)
  10. get_actor()
  11. end
  12. def get_actor do
  13. "#{Pleroma.Web.Endpoint.url()}/internal/fetch"
  14. |> User.get_or_create_service_actor_by_ap_id("internal.fetch")
  15. end
  16. end