From 3609f695624187efc6e5a10d3edcccf08c48cd70 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Thu, 13 Aug 2020 17:58:52 -0400 Subject: [PATCH] fix posting --- lib/philomena_web/views/api/json/forum/topic_view.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/views/api/json/forum/topic_view.ex b/lib/philomena_web/views/api/json/forum/topic_view.ex index 93449115..564eb5f2 100644 --- a/lib/philomena_web/views/api/json/forum/topic_view.ex +++ b/lib/philomena_web/views/api/json/forum/topic_view.ex @@ -36,7 +36,7 @@ defmodule PhilomenaWeb.Api.Json.Forum.TopicView do sticky: topic.sticky, last_replied_to_at: topic.last_replied_to_at, locked: not is_nil(topic.locked_at), - user_id: if(not topic.anonymous, do: topic.user.id), + user_id: if(not topic.anonymous, do: topic.user_id), author: if(topic.anonymous or is_nil(topic.user), do: UserAttributionView.anonymous_name(topic),