remove unused second param

This commit is contained in:
Matthias Pfefferle 2023-05-04 08:50:44 +02:00
parent f07869c7d1
commit 144356bf8a

View file

@ -69,7 +69,7 @@ class Mention {
* @return string the final string
*/
public static function replace_with_links( $result ) {
$metadata = get_remote_metadata_by_actor( $result[0], true );
$metadata = get_remote_metadata_by_actor( $result[0] );
if ( ! is_wp_error( $metadata ) && ! empty( $metadata['url'] ) ) {
$username = ltrim( $result[0], '@' );
if ( ! empty( $metadata['name'] ) ) {