pfefferle / wordpress-opengraph

Open Graph plugin for WordPress
http://wordpress.org/plugins/opengraph/
Apache License 2.0
22 stars 13 forks source link

fediverse account beginning a, c, t or : are trimmed #36

Closed aslakr closed 4 months ago

aslakr commented 4 months ago

It seems like accounts which begins with the letter a, c, t or : is trimmed.

E.g. abc@host.tld (or aaabc@host.tld, @tactbc@host.tld etc.) becomes:

<meta content="bc@host.tld" name="fediverse:creator">

https://github.com/willnorris/wordpress-opengraph/blob/c710ba7e528cb9521b265b4441636e4013329d32/opengraph.php#L592-L593

ltrim https://www.php.net/manual/en/function.ltrim.php might not be useful if you need to remove acct:

pfefferle commented 4 months ago

hmm, good point! thanks for reporting!