Skip to content

Commit

Permalink
Remove references to twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Oct 17, 2024
1 parent 6c3a101 commit 11f7cd7
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 15 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org).

## [7.11.3] - 2024-10-17
### Added
* *Nothing*

### Changed
* *Nothing*

### Deprecated
* *Nothing*

### Removed
* *Nothing*

### Fixed
* Remove references to Twitter/X


## [7.11.2] - 2024-10-16
### Added
* *Nothing*
Expand Down
7 changes: 1 addition & 6 deletions src/components/SocialList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { faBluesky, faGithub, faMastodon, faPaypal, faXTwitter } from '@fortawesome/free-brands-svg-icons';
import { faBluesky, faGithub, faMastodon, faPaypal } from '@fortawesome/free-brands-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import classNames from 'classnames';
import type { FC } from 'react';
Expand All @@ -21,11 +21,6 @@ export const SocialList: FC<SocialListProps> = ({ type, className }) => (
<FontAwesomeIcon icon={faMastodon} fixedWidth />
</ExternalLink>
</li>
<li className="list-inline-item">
<ExternalLink href="https://twitter.com/shlinkio" title="Twitter" aria-label="Twitter">
<FontAwesomeIcon icon={faXTwitter} fixedWidth />
</ExternalLink>
</li>
<li className="list-inline-item">
<ExternalLink href="https://bsky.app/profile/shlinkio.bsky.social" title="Bluesky" aria-label="Bluesky">
<FontAwesomeIcon icon={faBluesky} fixedWidth />
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { SEO } from 'astro-seo';
import { Footer } from '../components/Footer';
import { Header } from '../components/Header';
import { openGraph, twitter } from '../utils/seoUtils';
import { openGraph } from '../utils/seoUtils';
import '../assets/sass/main.scss';
export interface Props {
Expand All @@ -25,7 +25,7 @@ const currentPage = Astro.url.pathname;
<meta name="viewport" content="width=device-width"/>
<meta name="generator" content={Astro.generator}/>
<meta name="theme-color" content="#4696e5"/>
<SEO {...openGraph(title, description, siteName)} twitter={twitter} />
<SEO {...openGraph(title, description, siteName)} />

<link
rel="stylesheet"
Expand Down
2 changes: 1 addition & 1 deletion src/pages/documentation/some-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Starting with Shlink 2.8.0, Shlink can match short URLs as soon as the visited U

When this happens, Shlink will append the rest of the path to the long URL before redirection.

For example, if you have a `https://exam.ple/abc123` URL that points to `https://www.twitter.com`, you can make Shlink capture visits to `https://exam.ple/abc123/shlinkio` and redirect to `https://www.twitter.com/shlinkio`.
For example, if you have a `https://exam.ple/abc123` URL that points to `https://github.com`, you can make Shlink capture visits to `https://exam.ple/abc123/shlinkio` and redirect to `https://github.com/shlinkio`.

When this happens, Shlink will track the visit as usual.

Expand Down
6 changes: 0 additions & 6 deletions src/utils/seoUtils.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
export const twitter = {
site: '@shlinkio',
creator: '@acelayaa',
card: 'summary_large_image',
};

export const openGraph = (title: string, description: string, siteName: string) => ({
title,
description,
Expand Down

0 comments on commit 11f7cd7

Please sign in to comment.