mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: error when loading admin > flags
This commit is contained in:
parent
71c1eccf2b
commit
727827dc25
3 changed files with 3 additions and 1 deletions
|
@ -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 a new issue