don't display user e-mail addresses in rss output if user.publishemail is set to false
This commit is contained in:
parent
bc37d92c9e
commit
edd1ef1eb6
6 changed files with 12 additions and 7 deletions
|
@ -27,7 +27,9 @@ if (max > 0 && this.online) {
|
|||
param.title = "...";
|
||||
param.publisher = systitle;
|
||||
param.creator = story.creator.name;
|
||||
param.email = translateToEntities(story.creator.email);
|
||||
param.email = "";
|
||||
if (story.creator.publishemail)
|
||||
param.email = translateToEntities(story.creator.email);
|
||||
param.date = story.modifytime.format(w3fmt);
|
||||
param.subject = story.topic ? story.topic : "";
|
||||
param.year = story.modifytime.getYear();
|
||||
|
@ -39,7 +41,8 @@ if (max > 0 && this.online) {
|
|||
param.url = this.href();
|
||||
param.title = systitle;
|
||||
param.creator = this.creator.name
|
||||
param.email = translateToEntities(this.creator.email);
|
||||
if (this.creator.publishemail)
|
||||
param.email = translateToEntities(this.creator.email);
|
||||
param.year = now.getYear();
|
||||
param.lastupdate = max > 0 ? this.lastUpdate.format(w3fmt): this.createtime.format(w3fmt);
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<link><% this.url %></link>
|
||||
<description><% this.tagline encoding="xml" %></description>
|
||||
<dc:publisher><% param.title encoding="xml" %></dc:publisher>
|
||||
<dc:creator><% param.creator encoding="xml" %> (mailto:<% param.email encoding="xml" %>)</dc:creator>
|
||||
<dc:creator><% param.creator encoding="xml" %><% param.email encoding="xml" prefix=" (mailto:" suffix=")" %></dc:creator>
|
||||
<dc:date><% param.lastupdate %></dc:date>
|
||||
<dc:language>en</dc:language>
|
||||
<sy:updatePeriod>hourly</sy:updatePeriod>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<link><% this.url encoding="xml" %></link>
|
||||
<description><% param.date %><% this.tagline encoding="xml" prefix=" – " %></description>
|
||||
<dc:publisher><% param.publisher encoding="xml" %></dc:publisher>
|
||||
<dc:creator><% param.creator encoding="xml" %> (mailto:<% param.email encoding="xml" %>)</dc:creator>
|
||||
<dc:creator><% param.creator encoding="xml" %><% param.email prefix=" (mailto:" suffix=")" encoding="xml" %></dc:creator>
|
||||
<dc:rights>Copyright © <% param.year %> <% param.creator encoding="xml" %>%></dc:rights>
|
||||
<dc:date><% param.isodate %></dc:date>
|
||||
</item>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue