Skip to content

Commit

Permalink
Publicize: add Fediverse meta tag on posts when available (#38198)
Browse files Browse the repository at this point in the history
* 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:
Automattic/jetpack#38198 (comment)

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/9935380055

Upstream-Ref: Automattic/jetpack@fe17eb1
  • Loading branch information
jeherve authored and matticbot committed Jul 15, 2024
1 parent 2f887b0 commit 792c132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/project.json
Original file line number Diff line number Diff line change
@@ -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"}}}

0 comments on commit 792c132

Please sign in to comment.