FIX: error when loading admin > flags
This commit is contained in:
parent
71c1eccf2b
commit
727827dc25
|
@ -32,7 +32,7 @@
|
|||
<span class="private-message-glyph">{{fa-icon "envelope"}}</span>
|
||||
{{/if}}
|
||||
{{topic-status topic=flaggedPost.topic}}
|
||||
<a href='{{unbound flaggedPost.url}}'>{{{flaggedPost.topic.fancyTitle}}}</a>
|
||||
<a href='{{unbound flaggedPost.url}}'>{{{unbound flaggedPost.topic.fancyTitle}}}</a>
|
||||
</h3>
|
||||
{{#if flaggedPost.postAuthorFlagged}}
|
||||
{{{flaggedPost.excerpt}}}
|
||||
|
|
|
@ -10,6 +10,7 @@ const Topic = RestModel.extend({
|
|||
|
||||
@computed('fancy_title')
|
||||
fancyTitle(title) {
|
||||
title = title || "";
|
||||
title = Discourse.Emoji.unescape(title);
|
||||
return Discourse.CensoredWords.censor(title);
|
||||
},
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
class FlaggedTopicSerializer < ActiveModel::Serializer
|
||||
attributes :id,
|
||||
:title,
|
||||
:fancy_title,
|
||||
:slug,
|
||||
:archived,
|
||||
:closed,
|
||||
|
|
Loading…
Reference in New Issue