Fix user_controller.ex
This commit is contained in:
parent
c0bf6f62b4
commit
b582c93bb1
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue