Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
ced8c4f8
Commit
ced8c4f8
authored
Dec 23, 2008
by
Nigel McNie
Browse files
Only add In-Reply-To and References headers when the post has a parent.
parent
97102a56
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/interaction/forum/lib.php
View file @
ced8c4f8
...
...
@@ -380,9 +380,11 @@ class ActivityTypeInteractionForumNewPost extends ActivityTypePlugin {
'List-Id: "'
.
$cleanforumname
.
'" <forum'
.
$post
->
forumid
.
'@'
.
$hostname
.
'>'
,
'List-Help: '
.
get_config
(
'wwwroot'
)
.
'interaction/forum/view.php?id='
.
$post
->
forumid
,
'Message-ID: <forumpost'
.
$this
->
postid
.
'@'
.
$hostname
.
'>'
,
'In-Reply-To: <forumpost'
.
$post
->
parent
.
'@'
.
$hostname
.
'>'
,
'References: <forumpost'
.
$post
->
parent
.
'@'
.
$hostname
.
'>'
,
);
if
(
$post
->
parent
)
{
$this
->
customheaders
[]
=
'In-Reply-To: <forumpost'
.
$post
->
parent
.
'@'
.
$hostname
.
'>'
;
$this
->
customheaders
[]
=
'References: <forumpost'
.
$post
->
parent
.
'@'
.
$hostname
.
'>'
;
}
foreach
(
$this
->
users
as
&
$user
)
{
if
(
$post
->
parent
)
{
$user
->
subject
=
get_string
(
'replytotopicby'
,
'interaction.forum'
,
$post
->
groupname
,
$post
->
forumtitle
,
$post
->
topicsubject
,
display_name
(
$post
->
poster
,
$user
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment