| @@ -66,9 +66,9 @@ | ||
| 66 | 66 | if( wpforo_is_users_same( $user ) ) continue; |
| 67 | 67 | if( ! WPF()->topic->view_access( $topic, $user ) ) continue; |
| 68 | 68 | |
| 69 | 69 | $sbj_msg = WPF()->sbscrb->get_sbj_msg( 'user_follow', $forum, $topic, $owner, $user, $follow['unfollow_link'] ); |
| 70 | - wpforo_send_email( $user['user_email'], $sbj_msg['sbj'], $sbj_msg['msg'] ); | |
| 70 | + wpforo_send_email( $user['user_email'], $sbj_msg['sbj'], $sbj_msg['msg'], '', 'follow', (int) $topic['topicid'] ); | |
| 71 | 71 | |
| 72 | 72 | WPF()->ram_cache->set( $key, true ); |
| 73 | 73 | } |
| 74 | 74 | } |
| @@ -96,9 +96,9 @@ | ||
| 96 | 96 | if( wpforo_is_users_same( $user ) ) continue; |
| 97 | 97 | if( ! WPF()->post->view_access( $post, $user ) ) continue; |
| 98 | 98 | |
| 99 | 99 | $sbj_msg = WPF()->sbscrb->get_sbj_msg( 'user_follow', $topic, $post, $owner, $user, $follow['unfollow_link'] ); |
| 100 | - wpforo_send_email( $user['user_email'], $sbj_msg['sbj'], $sbj_msg['msg'] ); | |
| 100 | + wpforo_send_email( $user['user_email'], $sbj_msg['sbj'], $sbj_msg['msg'], '', 'follow', (int) $post['postid'] ); | |
| 101 | 101 | |
| 102 | 102 | WPF()->ram_cache->set( $key, true ); |
| 103 | 103 | } |
| 104 | 104 | } |