We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4563f7 commit 9d14a57Copy full SHA for 9d14a57
1 file changed
event/listener.php
@@ -121,14 +121,14 @@ public function clean_message($event)
121
return;
122
}
123
124
- if ($event['topic_data']['topic_first_post_id'] == $event['row']['post_id'])
+ if ($event['topic_data']['topic_first_post_id'] == $event['row']['post_id'] && $event['topic_data']['topic_time'] < strtotime('September 1, 2017'))
125
{
126
$post_row = $event['post_row'];
127
$message = $post_row['MESSAGE'];
128
129
// This freakish looking regex pattern should
130
// remove the old ideas link-backs from the message.
131
- $message = preg_replace('/(<br[^>]*>\\n?)\\1-{10}\\1\\1.*/s', '', $message);
+ $message = preg_replace('/(<br[^>]*>\\n?)\\1-{10}\\1\\1.*]/s', '', $message);
132
133
$post_row['MESSAGE'] = $message;
134
$event['post_row'] = $post_row;
0 commit comments