Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social previews | Remove learn more for link previews #98930

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/social-previews/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Added Threads and Bluesky preview
- Fixed media image URL for Tumblr and Instagram previews
- Removed the learn more link for link previews

## v2.0.1 (2024-06-10)

Expand Down
2 changes: 1 addition & 1 deletion packages/social-previews/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@automattic/social-previews",
"version": "2.1.0-beta.8",
"version": "2.1.0-beta.9",
"description": "A suite of components to generate previews for a post for both social and search engines.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
5 changes: 0 additions & 5 deletions packages/social-previews/src/bluesky-preview/previews.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ExternalLink } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { SectionHeading } from '../shared/section-heading';
import { SocialPreviewsBaseProps } from '../types';
Expand Down Expand Up @@ -43,10 +42,6 @@ export const BlueskyPreviews: React.FC< BlueskyPreviewsProps > = ( {
'This is what it will look like when someone shares the link to your WordPress post on Bluesky.',
'social-previews'
) }
&nbsp;
<ExternalLink href="https://jetpack.com/support/jetpack-social-image-generator">
{ __( 'Learn more about links', 'social-previews' ) }
</ExternalLink>
</p>
<BlueskyLinkPreview { ...props } />
</section>
Expand Down
5 changes: 0 additions & 5 deletions packages/social-previews/src/facebook-preview/previews.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ExternalLink } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import SectionHeading from '../shared/section-heading';
import { SocialPreviewsBaseProps } from '../types';
Expand Down Expand Up @@ -47,10 +46,6 @@ export const FacebookPreviews: React.FC< FacebookPreviewsProps > = ( {
'This is what it will look like when someone shares the link to your WordPress post on Facebook.',
'social-previews'
) }
&nbsp;
<ExternalLink href="https://jetpack.com/support/jetpack-social-image-generator">
{ __( 'Learn more about links', 'social-previews' ) }
</ExternalLink>
</p>
{ hasCustomImage ? (
<LinkPreviewDetails { ...props } />
Expand Down
5 changes: 0 additions & 5 deletions packages/social-previews/src/linkedin-preview/previews.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ExternalLink } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import SectionHeading from '../shared/section-heading';
import { LinkedInLinkPreview } from './link-preview';
Expand Down Expand Up @@ -40,10 +39,6 @@ export const LinkedInPreviews: React.FC< LinkedInPreviewsProps > = ( {
'This is what it will look like when someone shares the link to your WordPress post on LinkedIn.',
'social-previews'
) }
&nbsp;
<ExternalLink href="https://jetpack.com/support/jetpack-social-image-generator">
{ __( 'Learn more about links', 'social-previews' ) }
</ExternalLink>
</p>
<LinkedInLinkPreview { ...props } name="" profileImage="" />
</section>
Expand Down
5 changes: 0 additions & 5 deletions packages/social-previews/src/mastodon-preview/previews.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ExternalLink } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { SectionHeading } from '../shared/section-heading';
import { SocialPreviewsBaseProps } from '../types';
Expand Down Expand Up @@ -43,10 +42,6 @@ export const MastodonPreviews: React.FC< MastodonPreviewsProps > = ( {
'This is what it will look like when someone shares the link to your WordPress post on Mastodon.',
'social-previews'
) }
&nbsp;
<ExternalLink href="https://jetpack.com/support/jetpack-social-image-generator">
{ __( 'Learn more about links', 'social-previews' ) }
</ExternalLink>
</p>
<MastodonLinkPreview { ...props } user={ undefined } />
</section>
Expand Down
5 changes: 0 additions & 5 deletions packages/social-previews/src/nextdoor-preview/previews.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ExternalLink } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import SectionHeading from '../shared/section-heading';
import { NextdoorLinkPreview } from './link-preview';
Expand Down Expand Up @@ -40,10 +39,6 @@ export const NextdoorPreviews: React.FC< NextdoorPreviewsProps > = ( {
'This is what it will look like when someone shares the link to your WordPress post on Nextdoor.',
'social-previews'
) }
&nbsp;
<ExternalLink href="https://jetpack.com/support/jetpack-social-image-generator">
{ __( 'Learn more about links', 'social-previews' ) }
</ExternalLink>
</p>
<NextdoorLinkPreview { ...props } name="" profileImage="" />
</section>
Expand Down
5 changes: 0 additions & 5 deletions packages/social-previews/src/threads-preview/previews.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ExternalLink } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import SectionHeading from '../shared/section-heading';
import { ThreadsLinkPreview } from './link-preview';
Expand Down Expand Up @@ -55,10 +54,6 @@ export const ThreadsPreviews: React.FC< ThreadsPreviewsProps > = ( {
'This is what it will look like when someone shares the link to your WordPress post on Threads.',
'social-previews'
) }
&nbsp;
<ExternalLink href="https://jetpack.com/support/jetpack-social-image-generator">
{ __( 'Learn more about links', 'social-previews' ) }
</ExternalLink>
</p>
<ThreadsLinkPreview { ...posts[ 0 ] } name="" profileImage="" />
</>
Expand Down
5 changes: 0 additions & 5 deletions packages/social-previews/src/tumblr-preview/previews.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ExternalLink } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import { SectionHeading } from '../shared/section-heading';
import { SocialPreviewsBaseProps } from '../types';
Expand Down Expand Up @@ -45,10 +44,6 @@ export const TumblrPreviews: React.FC< TumblrPreviewsProps > = ( {
'This is what it will look like when someone shares the link to your WordPress post on Tumblr.',
'social-previews'
) }
&nbsp;
<ExternalLink href="https://jetpack.com/support/jetpack-social-image-generator">
{ __( 'Learn more about links', 'social-previews' ) }
</ExternalLink>
</p>
<TumblrLinkPreview { ...props } user={ undefined } />
</section>
Expand Down
5 changes: 0 additions & 5 deletions packages/social-previews/src/twitter-preview/previews.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { ExternalLink } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import SectionHeading from '../shared/section-heading';
import { TwitterLinkPreview } from './link-preview';
Expand Down Expand Up @@ -53,10 +52,6 @@ export const TwitterPreviews: React.FC< TwitterPreviewsProps > = ( {
'This is what it will look like when someone shares the link to your WordPress post on X.',
'social-previews'
) }
&nbsp;
<ExternalLink href="https://jetpack.com/support/jetpack-social-image-generator">
{ __( 'Learn more about links', 'social-previews' ) }
</ExternalLink>
</p>
<TwitterLinkPreview { ...tweets[ 0 ] } name="" profileImage="" screenName="" />
</section>
Expand Down
Loading