From 4a0d7cac7f7fa8b6679e76201499311afcb76978 Mon Sep 17 00:00:00 2001 From: Tayyyyyyy Date: Fri, 9 Feb 2018 13:10:05 -0600 Subject: [PATCH] Account for censorship screens --- code/game/machinery/newscaster.dm | 2 +- nano/templates/newscaster.tmpl | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm index 98393f01dab..0451fba67ef 100644 --- a/code/game/machinery/newscaster.dm +++ b/code/game/machinery/newscaster.dm @@ -252,7 +252,7 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co var/list/messages = list() data["messages"] = messages for(var/datum/feed_message/M in viewing_channel.messages) - messages[++messages.len] = list("body" = M.body, "body_redacted" = (M.body == REDACTED ? 1 : 0) , "message_type" = M.message_type, "author" = M.author, "author_redacted" = (M.author == REDACTED ? 1 : 0), "ref" = "\ref[M]", "view_count" = M.view_count) + messages[++messages.len] = list("title" = M.title, "body" = M.body, "body_redacted" = (M.body == REDACTED ? 1 : 0) , "message_type" = M.message_type, "author" = M.author, "author_redacted" = (M.author == REDACTED ? 1 : 0), "ref" = "\ref[M]", "view_count" = M.view_count) if(10) var/wanted_already = 0 var/end_param = 1 diff --git a/nano/templates/newscaster.tmpl b/nano/templates/newscaster.tmpl index 47a8ac71387..104730c0285 100644 --- a/nano/templates/newscaster.tmpl +++ b/nano/templates/newscaster.tmpl @@ -206,7 +206,8 @@ Property of Nanotrasen
{{:helper.link(data.author_redacted ? 'Undo author censorship' : 'Censor channel author', null, {'censor_channel_author' : data.ref})}}

{{for data.messages}}
- - {{:value.body}}
+ {{:value.title}}
+ {{:value.body}}
{{if value.img}}
{{/if}} @@ -234,7 +235,8 @@ Property of Nanotrasen
{{else}} {{for data.messages}}
- - {{:value.body}}
+ {{:value.title}}
+ {{:value.body}}
{{if value.img}}
{{/if}}