Egregoros

Signal feed

Timeline

Post

Remote status

Context

10
Erlang/OTP 28 [erts-16.2] [source] [64-bit] [smp:32:32] [ds:32:32:10] [async-threads:1] [jit:ns]



Interactive Elixir (1.19.5) - press Ctrl+C to exit (type h() ENTER for help)

iex(pleroma@127.0.0.1)1> Pleroma.Web.ActivityPub.Utils.fetch_latest_followwarning: Range.new/2 and first..last default to a step of -1 when last < first. Use Range.new(first, last, -1) or first..last//-1, or pass 1 if that was your intention

  (timex 3.7.7) lib/parse/datetime/helpers.ex:168: Timex.Parse.DateTime.Helpers.integer/1

  (timex 3.7.7) lib/parse/datetime/parsers.ex:24: Timex.Parse.DateTime.Parsers.year4/1

  (timex 3.7.7) lib/parse/datetime/tokenizers/directive.ex:110: Timex.Parse.DateTime.Tokenizers.Directive.get/5

  (combine 0.10.0) lib/combine/parsers/base.ex:154: Combine.Parsers.Base.pipe_impl/3

  (combine 0.10.0) lib/combine/parsers/base.ex:490: Combine.Parsers.Base.preserve_ignored_impl/2



iex(pleroma@127.0.0.1)1> Pleroma.Web.ActivityPub.Utils.fetch_latest_follow(user, relay)

error: undefined variable "user"

โ””โ”€ iex:1



** (CompileError) cannot compile code (errors have been logged)





09:56:10.741 [error] Publisher failed to inbox https://miniwa.moe/inbox {:error, :checkout_failure}
@graf @Paleface define the user and relay again.

Also you can enable IEx access for source installs by replacing ExecStart in the systemd service file like this with an override
[Service]
ExecStart=/usr/bin/elixir --name pleroma@127.0.0.1 --erl '-kernel inet_dist_listen_min 9001 inet_dist_listen_max 9001 inet_dist_use_interface {127,0,0,1}' -S mix phx.server
Then you can get into IEx by switching to the Pleroma user and running
iex --remsh pleroma@127.0.0.1 --name console@127.0.0.1
without restarting Pleroma.
iex(pleroma@127.0.0.1)5> Pleroma.Web.CommonAPI.unfollow(relay, user)

{:error, "Not subscribed!"}

iex(pleroma@127.0.0.1)6> Pleroma.Web.CommonAPI.block(relay, user)

{:ok,

 %Pleroma.Activity{

   __meta__: #Ecto.Schema.Metadata<:loaded, "activities">,

   id: "B71HX4NEzENhfib7HE",

   data: %{

     "actor" => "https://poa.st/users/MrsWignatte_10134",

     "bcc" => [],

     "bto" => [],

     "cc" => [],

     "id" => "https://poa.st/activities/dd46c7f2-f68a-484b-bb23-96ceb0272e22",

     "object" => "https://nicecrew.digital/relay",

     "to" => ["https://nicecrew.digital/relay"],

     "type" => "Block"

   },

   local: true,

   actor: "https://poa.st/users/MrsWignatte_10134",

   recipients: ["https://nicecrew.digital/relay"],

   thread_muted?: nil,

   pagination_id: nil,

   user_actor: #Ecto.Association.NotLoaded<association :user_actor is not loaded>,

   bookmark: #Ecto.Association.NotLoaded<association :bookmark is not loaded>,

   report_notes: #Ecto.Association.NotLoaded<association :report_notes is not loaded>,

   notifications: #Ecto.Association.NotLoaded<association :notifications is not loaded>,

   object: #Ecto.Association.NotLoaded<association :object is not loaded>,

   inserted_at: ~N[2026-06-05 10:08:56],

   updated_at: ~N[2026-06-05 10:08:56]

 }}

iex(pleroma@127.0.0.1)7>

@Paleface quick reply?