Accounts can sometimes be empty objects, crashes the FE
Environment
- Installation type (OTP or From Source): Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.1.1
- Elixir version (
elixir -v
for from source installations, N/A for OTP): Elixir 1.10.4 (compiled with Erlang/OTP 22) - Operating system: Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-42-generic x86_64)
- PostgreSQL version (
psql -V
): 12.4
Bug description
account
data returned with certain endpoints such as /api/v1/timelines/home
and /api/v1/notifications
can be empty. This causes a lot of FE errors (in Soapbox FE, Tusky, etc) as they rely on an account object having some minimum fields be default.