Cannot unfollow relays
Environment
- Installation type (OTP or From Source): From Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE):
2.2.50-389-g79a509ee-develop
- Elixir version (
elixir -v
for from source installations, N/A for OTP):Erlang/OTP 23 [erts-11.1.2] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [hipe]
,Elixir 1.11.0 (compiled with Erlang/OTP 23)
- Operating system: Arch Linux,
Linux 5.9.8-arch1-1 #1 SMP PREEMPT Tue, 10 Nov 2020 22:44:11 +0000 x86_64 GNU/Linux
- PostgreSQL version (
psql -V
):psql (PostgreSQL) 12.5
Bug description
Adding the bug description from !3129 (comment 77775) also here to property track it (sorry for being lazy yesterday evening and not opening an issue):
When trying to unfollow a relay (and possibly upon other activities, but I haven't tried), I'm getting
** (ArgumentError) argument error
:persistent_term.get(ConcurrentLimiter.Pleroma.Web.RichMedia.Helpers)
(concurrent_limiter 0.1.0) lib/concurrent_limiter.ex:96: ConcurrentLimiter.do_limit/4
(pleroma 2.2.50-389-g79a509ee-develop) lib/pleroma/web/activity_pub/activity_pub.ex:126: Pleroma.Web.ActivityPub.ActivityPub.insert/4
(pleroma 2.2.50-389-g79a509ee-develop) lib/pleroma/web/activity_pub/activity_pub.ex:326: Pleroma.Web.ActivityPub.ActivityPub.do_unfollow/4
(ecto_sql 3.4.5) lib/ecto/adapters/sql.ex:875: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4
(db_connection 2.2.2) lib/db_connection.ex:1427: DBConnection.run_transaction/4
(pleroma 2.2.50-389-g79a509ee-develop) lib/pleroma/web/activity_pub/activity_pub.ex:317: Pleroma.Web.ActivityPub.ActivityPub.unfollow/4
(pleroma 2.2.50-389-g79a509ee-develop) lib/pleroma/web/activity_pub/relay.ex:37: Pleroma.Web.ActivityPub.Relay.unfollow/2
It seems like the pleroma.relay
mix task doesn't call limiters_setup
, so the Pleroma.Web.RichMedia.Helpers
just doesn't exist.