User search in Pleroma-FE no longer works
A recent change (in the past few days) has caused the user search to fail.
A search for myself as an example fails to show anything and the following error is logged:
08:38:50.611 request_id=2m02pj7l0vpkrf8ains002f1 [info] GET /api/v1/instance/activity
08:38:50.612 request_id=2m02pj7l0vpkrf8ains002f1 [info] Sent 200 in 874µs
08:38:54.857 request_id=2m02pjfi3is8dnubf3s000e4 [info] GET /api/pleroma/search_user
08:38:55.220 request_id=2m02pjfi3is8dnubf3s000e4 [info] Converted error Cachex.ExecutionError to 500 response
08:38:55.221 request_id=2m02pjfi3is8dnubf3s000e4 [info] Sent 500 in 363ms
08:38:55.228 [error] #PID<0.1156.0> running Pleroma.Web.Endpoint (cowboy_protocol) terminated
Server: pleroma.funkymonkey.org:80 (http)
Request: GET /api/pleroma/search_user?query=tiker%40pleroma.funkymonkey.org
** (exit) an exception was raised:
** (Cachex.ExecutionError) function nil.note_count/0 is undefined
(cachex) lib/cachex.ex:1447: Cachex.unwrap_unsafe/1
(pleroma) lib/pleroma/web/twitter_api/views/user_view.ex:61: Pleroma.Web.TwitterAPI.UserView.do_render/2
(elixir) lib/enum.ex:1314: Enum."-map/2-lists^map/1-0-"/2
(elixir) lib/enum.ex:1314: Enum."-map/2-lists^map/1-0-"/2
(pleroma) lib/pleroma/web/twitter_api/views/user_view.ex:19: Pleroma.Web.TwitterAPI.UserView.render/2
(phoenix) lib/phoenix/view.ex:399: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/controller.ex:729: Phoenix.Controller.__put_render__/5
(phoenix) lib/phoenix/controller.ex:746: Phoenix.Controller.instrument_render_and_send/4
08:38:58.240 request_id=2m02pjlrp21o37a02rs000f4 [info] GET /api/statuses/friends_timeline.json
08:38:58.259 request_id=2m02pjlrp21o37a02rs000f4 [info] Sent 200 in 18ms
08:38:58.327 request_id=2m02pjm0tcheqjs3jrs000g4 [info] GET /api/qvitter/statuses/notifications.json
08:38:58.568 request_id=2m02pjm0tcheqjs3jrs000g4 [info] Converted error Cachex.ExecutionError to 500 response
08:38:58.569 request_id=2m02pjm0tcheqjs3jrs000g4 [info] Sent 500 in 241ms
08:38:58.574 [error] #PID<0.1163.0> running Pleroma.Web.Endpoint (cowboy_protocol) terminated
Server: pleroma.funkymonkey.org:80 (http)
Request: GET /api/qvitter/statuses/notifications.json?count=20
** (exit) an exception was raised:
** (Cachex.ExecutionError) function nil.note_count/0 is undefined
(cachex) lib/cachex.ex:1447: Cachex.unwrap_unsafe/1
(pleroma) lib/pleroma/web/twitter_api/views/user_view.ex:61: Pleroma.Web.TwitterAPI.UserView.do_render/2
(pleroma) lib/pleroma/web/twitter_api/views/activity_view.ex:180: Pleroma.Web.TwitterAPI.ActivityView.render/2
(pleroma) lib/pleroma/web/twitter_api/views/notification_view.ex:62: Pleroma.Web.TwitterAPI.NotificationView.render/2
(elixir) lib/enum.ex:1314: Enum."-map/2-lists^map/1-0-"/2
(elixir) lib/enum.ex:1314: Enum."-map/2-lists^map/1-0-"/2
(phoenix) lib/phoenix/view.ex:399: Phoenix.View.render_to_iodata/3
(phoenix) lib/phoenix/controller.ex:729: Phoenix.Controller.__put_render__/5
08:39:08.240 request_id=2m02pk8fpd4bfilm7fs002s2 [info] GET /api/statuses/friends_timeline.json
08:39:08.262 request_id=2m02pk8fpd4bfilm7fs002s2 [info] Sent 200 in 21ms
Actually, the second error above might be something else since it's repeating every 2 seconds.