forked from GithubBackups/vichan
functions.php: strikethrough bad citations
This commit is contained in:
parent
619303c8cf
commit
13c9e01a2c
@ -2029,11 +2029,14 @@ function markup(&$body, $track_cites = false) {
|
||||
link_for(array('id' => $cite, 'thread' => $cited_posts[$cite])) . '#' . $cite . '">' .
|
||||
'>>' . $cite .
|
||||
'</a>';
|
||||
} else {
|
||||
$replacement = "<s>>>$cite</s>";
|
||||
}
|
||||
|
||||
$body = mb_substr_replace($body, $matches[1][0] . $replacement . $matches[3][0], $matches[0][1] + $skip_chars, mb_strlen($matches[0][0]));
|
||||
$skip_chars += mb_strlen($matches[1][0] . $replacement . $matches[3][0]) - mb_strlen($matches[0][0]);
|
||||
|
||||
if ($track_cites && $config['track_cites'])
|
||||
if ($track_cites && $config['track_cites']) {
|
||||
$tracked_cites[] = array($board['uri'], $cite);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user