Skip to content
Snippets Groups Projects
Commit 5b513b08 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix the display of anonymous messages and posting on anon-only subs

Don't display the name of messages posted with the anonymous attribute
and force messages posted to anonymous-only subs as anonymous.
parent aa48840e
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -587,7 +587,7 @@ function postPoll(sub, subject, votes, results, answers, comments) { ...@@ -587,7 +587,7 @@ function postPoll(sub, subject, votes, results, answers, comments) {
var header = { var header = {
attr : MSG_POLL, attr : MSG_POLL,
subject : subject.substr(0, LEN_TITLE), subject : subject.substr(0, LEN_TITLE),
from : msg_area.sub[sub].settings&SUB_NAME ? user.name : user.alias, from : msg_area.sub[sub].settings&SUB_AONLY ? "Anonymous" : (msg_area.sub[sub].settings&SUB_NAME ? user.name : user.alias),
from_ext : user.number, from_ext : user.number,
to : 'All', to : 'All',
field_list : [], field_list : [],
...@@ -952,7 +952,7 @@ function getMessageThreads(sub, max) { ...@@ -952,7 +952,7 @@ function getMessageThreads(sub, max) {
attr : header.attr, attr : header.attr,
auxattr : header.auxattr, auxattr : header.auxattr,
number : header.number, number : header.number,
from : header.is_utf8 ? header.from : utf8_encode(header.from), from : (header.attr&MSG_ANONYMOUS) ? "Anonymous" : (header.is_utf8 ? header.from : utf8_encode(header.from)),
from_ext : header.from_ext, from_ext : header.from_ext,
from_net_addr : header.from_net_addr, from_net_addr : header.from_net_addr,
to : header.is_utf8 ? header.to : utf8_encode(header.to), to : header.is_utf8 ? header.to : utf8_encode(header.to),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment