Fix user_controller.ex

This commit is contained in:
Mirai Kumiko 2025-06-14 19:25:24 +02:00
parent c0bf6f62b4
commit b582c93bb1
Signed by: miraikumiko
GPG key ID: 3F178B1B5E0CB278

View file

@ -16,7 +16,7 @@ defmodule NullaWeb.UserController do
if accept in ["application/activity+json", "application/ld+json"] do if accept in ["application/activity+json", "application/ld+json"] do
conn conn
|> put_resp_content_type("application/activity+json") |> put_resp_content_type("application/activity+json")
|> send_resp(200, ActivityPub.user(domain, user)) |> send_resp(200, Jason.encode!(ActivityPub.user(domain, user)))
else else
following = Utils.count_following_by_username!(user.username) following = Utils.count_following_by_username!(user.username)
followers = Utils.count_followers_by_username!(user.username) followers = Utils.count_followers_by_username!(user.username)