From 792c1320eb5ab49c410ccc1bbaa16e86163afd10 Mon Sep 17 00:00:00 2001 From: jeherve Date: Mon, 15 Jul 2024 07:41:31 +0000 Subject: [PATCH] Publicize: add Fediverse meta tag on posts when available (#38198) * Publicize: add Fediverse meta tag on posts when available See https://blog.joinmastodon.org/2024/07/highlighting-journalism-on-mastodon/ If we have an existing Mastodon connection on the site, let's add it as meta tag on each post. * Improve logic to support global connections. 1. We now keep all existing Mastodon connections for a post, as long as that post was published to that connection. If you've opted not to share that post to Mastodon, we do not keep that connection. 2. We keep both your own connections as well as any other global connections on the site. 3. We then sort through those connections: * We prioritize your own connections, and pick the first of them, * If you, the author, haven't published that specific post to a Mastodon connection, we look for global Mastodon connections. If there are some, we pick the first. See discussion here: https://github.com/Automattic/jetpack/pull/38198#issuecomment-2225663451 Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/9935380055 Upstream-Ref: Automattic/jetpack@fe17eb182452c2dbb629238f84c8d7921251e3de --- docs/project.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/project.json b/docs/project.json index aa9ce361d..a65af94e6 100644 --- a/docs/project.json +++ b/docs/project.json @@ -1 +1 @@ -{"generatedAt":1720826082764,"hasCustomBabel":true,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":1,"testPackages":{"@playwright/test":"1.45.1","allure-playwright":"2.9.2","jest":"29.7.0"},"packageManager":{"type":"pnpm","version":"9.3.0"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"8.1.6","storybookVersionSpecifier":"8.1.6","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"8.1.6"},"@storybook/components":{"version":"8.1.6"},"@storybook/manager-api":{"version":"8.1.6"},"@storybook/react":{"version":"8.1.6"},"@storybook/react-webpack5":{"version":"8.1.6"},"@storybook/source-loader":{"version":"8.1.6"},"@storybook/test-runner":{"version":"0.18.1"},"@storybook/theming":{"version":"8.1.6"},"storybook":{"version":"8.1.6"}},"addons":{"@storybook/addon-docs":{"version":"8.1.6"},"@storybook/addon-storysource":{"version":"8.1.6"},"@storybook/addon-a11y":{"version":"8.1.6"},"@storybook/addon-essentials":{"version":"8.1.6"},"storybook-addon-mock":{"version":"5.0.0"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"}}} +{"generatedAt":1721028622891,"hasCustomBabel":true,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":false,"refCount":1,"testPackages":{"@playwright/test":"1.45.1","allure-playwright":"2.9.2","jest":"29.7.0"},"packageManager":{"type":"pnpm","version":"9.3.0"},"typescriptOptions":{"reactDocgen":"react-docgen-typescript"},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"8.1.6","storybookVersionSpecifier":"8.1.6","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"8.1.6"},"@storybook/components":{"version":"8.1.6"},"@storybook/manager-api":{"version":"8.1.6"},"@storybook/react":{"version":"8.1.6"},"@storybook/react-webpack5":{"version":"8.1.6"},"@storybook/source-loader":{"version":"8.1.6"},"@storybook/test-runner":{"version":"0.18.1"},"@storybook/theming":{"version":"8.1.6"},"storybook":{"version":"8.1.6"}},"addons":{"@storybook/addon-docs":{"version":"8.1.6"},"@storybook/addon-storysource":{"version":"8.1.6"},"@storybook/addon-a11y":{"version":"8.1.6"},"@storybook/addon-essentials":{"version":"8.1.6"},"storybook-addon-mock":{"version":"5.0.0"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.3"}}}