-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New thread guidelines #70
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
# addr = 127.0.0.1 | ||
|
||
# Port to listen on. | ||
port = 80 | ||
port = 8080 | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2484,15 +2484,18 @@ bool discussionPostForm(PostDraft draft, bool showCaptcha=false, PostError error | |
|
||
html.put( | ||
`<div id="postform-info">` | ||
`Posting to <b>`), html.putEncodedEntities(info.publicName), html.put(`</b>`, | ||
(parent | ||
? parentInfo | ||
`Posting to <b>`), html.putEncodedEntities(info.publicName), | ||
html.put(`</b>`,(parent ? parentInfo | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this hunk about? Looks like your editor misformatted it. |
||
? ` in reply to ` ~ postLink(parentInfo) | ||
: ` in reply to (unknown post)` | ||
: info | ||
? `:<br>(<b>` ~ encodeHtmlEntities(info.description) ~ `</b>)` | ||
: ``), | ||
`</div>` | ||
: ``)); | ||
if (info.newThreadGuidelines) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mixed tabs and spaces. DFeed uses tabs |
||
html.put(`<br>` | ||
`Please review the <a href="`, info.newThreadGuidelines,`" > guidelines on creating a new thread in `, info.publicName, `</a>`); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be entity-escaped |
||
|
||
html.put(`</div>` | ||
`<input type="hidden" name="secret" value="`, userSettings.secret, `">` | ||
`<input type="hidden" name="did" value="`), html.putEncodedEntities(draftID), html.put(`">` | ||
`<label for="postform-name">Your name:</label>` | ||
|
@@ -4005,7 +4008,7 @@ class NotFoundException : Exception | |
struct ListenConfig | ||
{ | ||
string addr; | ||
ushort port = 80; | ||
ushort port = 8000; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So is it 8000 or 8080? If anyone other than me actually used DFeed, I would say "don't change the defaults, that might break someone's setup", but it doesn't really matter. |
||
} | ||
|
||
struct Config | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you want to change this then you should also update the README. Ideally it would be in its own PR.