Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
dcfbb9d8
Commit
dcfbb9d8
authored
18 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
The maximum item description length (default: 500) can now be over-ridden
with the "maxdesclength" value in the ctrl/rss.ini file.
parent
5e52c22f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
web/root/rss.ssjs
+6
-2
6 additions, 2 deletions
web/root/rss.ssjs
with
6 additions
and
2 deletions
web/root/rss.ssjs
+
6
−
2
View file @
dcfbb9d8
...
...
@@ -2,7 +2,7 @@
// $Id$
// Tested successfully with SharpRead v0.9.5.1
// Tested successfully with SharpRead
er
v0.9.5.1
load
(
"
sbbsdefs.js
"
);
...
...
@@ -32,6 +32,9 @@ http://my.netscape.com/publish/formats/rss-spec-0.91.html#item */
if
(
defaults
.
maxmessages
==
undefined
)
defaults
.
maxmessages
=
15
;
if
(
defaults
.
maxdesclength
==
undefined
)
defaults
.
maxdesclength
=
500
;
var
channel
;
for
(
c
in
channel_list
)
if
(
channel_list
[
c
].
name
==
http_request
.
query
[
"
channel
"
])
{
...
...
@@ -132,6 +135,7 @@ if(channel.image_url==undefined) channel.image_url ='/images/default/sync_pbgj1
if
(
channel
.
image_title
==
undefined
)
channel
.
image_title
=
channel
.
title
;
if
(
channel
.
image_link
==
undefined
)
channel
.
image_link
=
channel
.
link
;
if
(
channel
.
maxmessages
==
undefined
)
channel
.
maxmessages
=
defaults
.
maxmessages
;
if
(
channel
.
maxdesclength
==
undefined
)
channel
.
maxdesclength
=
defaults
.
maxdesclength
;
http_reply
.
header
[
"
Content-Type
"
]
=
'
application/rss+xml
'
;
writeln
(
'
<?xml version="1.0" ?>
'
);
...
...
@@ -181,7 +185,7 @@ if(msgbase.open()) {
writeln
(
'
\t\t\t\t
<title>
'
+
encode
(
hdr
.
subject
)
+
'
</title>
'
);
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
<description>
'
+
encode
(
body
.
slice
(
0
,
channel
.
maxdesclength
))
+
'
</description>
'
);
if
(
this
.
login
==
undefined
)
// v3.12a
writeln
(
'
\t\t\t\t
<link>
'
+
link_root
+
'
&item=
'
+
hdr
.
number
+
'
</link>
'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment