Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Fix the display of anonymous messages and posting on anon-only subs
Browse files Browse the repository at this point in the history
Don't display the name of messages posted with the anonymous attribute
and force messages posted to anonymous-only subs as anonymous.
  • Loading branch information
rswindell committed May 3, 2020
1 parent aa48840 commit 5b513b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/lib/forum.js
Expand Up @@ -587,7 +587,7 @@ function postPoll(sub, subject, votes, results, answers, comments) {
var header = {
attr : MSG_POLL,
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,
to : 'All',
field_list : [],
Expand Down Expand Up @@ -952,7 +952,7 @@ function getMessageThreads(sub, max) {
attr : header.attr,
auxattr : header.auxattr,
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_net_addr : header.from_net_addr,
to : header.is_utf8 ? header.to : utf8_encode(header.to),
Expand Down

0 comments on commit 5b513b0

Please sign in to comment.