[various] Rename PageInfo::appendToBody to searchAndAppendToBody

This commit is contained in:
Hypolite Petovan 2020-07-18 11:38:11 -04:00
parent 1534404e3a
commit a80e9154c5
2 changed files with 3 additions and 3 deletions

View file

@ -1365,11 +1365,11 @@ function twitter_expand_entities($body, stdClass $status, $picture)
} elseif ($picture) {
$body .= "\n\n[img]" . $picture . "[/img]\n";
} else {
$body = PageInfo::appendToBody($body);
$body = PageInfo::searchAndAppendToBody($body);
}
}
return ['body' => $body, 'plain' => $plain, 'taglist' => $taglist];
return ['body' => $body, 'plain' => trim($plain), 'taglist' => $taglist];
}
/**