Skip to content
Snippets Groups Projects
Commit 82c5b672 authored by rswindell's avatar rswindell
Browse files

Link to full msgs/msg.ssjs URL if running v3.12b or later.

parent d02b8181
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,12 @@ if(msgbase.open()) {
writeln('\t\t\t\t<author>' + encode(hdr.from) + '</author>');
writeln('\t\t\t\t<guid>' + encode(hdr.id) + '</guid>');
writeln('\t\t\t\t<description>' + encode(body.slice(0,500)) + '</description>');
writeln('\t\t\t\t<link>' + link_root + '&amp;item=' + hdr.number + '</link>');
if(this.login==undefined) // v3.12a
writeln('\t\t\t\t<link>' + link_root + '&amp;item=' + hdr.number + '</link>');
else // v3.12b
writeln('\t\t\t\t<link>' + 'http://' + http_request.header.host + '/msgs/msg.ssjs?msg_sub=' +
channel.name + '&amp;mesage=' + hdr.number + '</link>');
writeln('\t\t\t</item>');
msgs++;
if(msgs>=channel.maxmessages)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment