mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-12 12:08:02 +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,
|
sticky: topic.sticky,
|
||||||
last_replied_to_at: topic.last_replied_to_at,
|
last_replied_to_at: topic.last_replied_to_at,
|
||||||
locked: not is_nil(topic.locked_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:
|
author:
|
||||||
if(topic.anonymous or is_nil(topic.user),
|
if(topic.anonymous or is_nil(topic.user),
|
||||||
do: UserAttributionView.anonymous_name(topic),
|
do: UserAttributionView.anonymous_name(topic),
|
||||||
|
|
Loading…
Reference in a new issue