Commit dc2c3702 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add forum post id to url in notification

parent d84351bb
......@@ -370,7 +370,7 @@ class ActivityTypeInteractionForumNewPost extends ActivityTypePlugin {
WHERE p.id = ?',
array($this->postid)
);
$this->url = get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $post->topicid;
$this->url = get_config('wwwroot') . 'interaction/forum/topic.php?id=' . $post->topicid . '#post' . $this->postid;
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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment