From acb84e0657b60936d0aaad623927e6ece3fdfefc Mon Sep 17 00:00:00 2001 From: ice9js Date: Mon, 12 Aug 2024 18:40:32 +0000 Subject: [PATCH] Publicize: add Fediverse creator meta tag from Mastodon connection (#38809) * Publicize: add Fediverse creator meta tag from Mastodon connection This is a follow-up to #38198, which was partially reverted in #38612. It's an alternative to #38565, to ensure better compatibility with WordPress.com Simple. 1. It takes into account the ActivityPub plugin, and ensure we're not adding a tag when the ActivityPub plugin already adds one. 2. It takes into account that on WordPress.com Simple, `get_services()` may return a `Keyring_Access_Token` object instead of an array. 3. It adds the 2 necessary methods directly to the `functions.opengraph.php` file, since we know it is loaded on the frontend on WordPress.com Simple (see conversation here to find out more: https://github.com/Automattic/jetpack/pull/38565#issuecomment-2277571635 ) * Add missing since parameter Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/10357379297 Upstream-Ref: Automattic/jetpack@3c68c42e7113c7018ddde49540d3b1dead64d83d