mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-03 16:17:59 +01:00
fix posting
This commit is contained in:
parent
4bfb7d8dd3
commit
3609f69562
1 changed files with 1 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue