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

Add nofollow tag to all status links to prevent unwanted indexing #205

Merged
merged 1 commit into from
Feb 8, 2024
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
2 changes: 1 addition & 1 deletion frontend/App/Statuses/Status/Merge/Merge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Merge = ({ title, url }: Props): ReactElement | null => {

if (url) {
return (
<LinkBox href={url} target="_blank">
<LinkBox href={url} target="_blank" rel="nofollow">
<Icon icon="merge_type" /> {title || 'request'}
</LinkBox>
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/App/Statuses/Status/Source/Source.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Source = ({ type, url }: Props): ReactElement => {

if (url) {
return (
<LinkBox href={url} target="_blank">
<LinkBox href={url} target="_blank" rel="nofollow">
{getIcon(type)}
</LinkBox>
);
Expand Down
2 changes: 1 addition & 1 deletion frontend/App/Statuses/Status/Status.style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const boxBase = css`
border-radius: 0.25rem;
min-width: 1.6em;
min-height: 2rem;
max-width: 15rem;
max-width: 20rem;
${ellipsis};

svg {
Expand Down
2 changes: 1 addition & 1 deletion frontend/App/Statuses/Status/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Statuses = ({ status }: Props): ReactElement => {
)}
<Merge title={status.mergeTitle} url={status.mergeUrl} />
{status.url && (
<LinkBox href={status.url} target="_blank">
<LinkBox href={status.url} target="_blank" rel="nofollow">
<Icon icon="launch" /> {pettyUrl(status.url)}
</LinkBox>
)}
Expand Down
2 changes: 1 addition & 1 deletion frontend/App/Statuses/Status/User/User.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const User = ({ username, url }: Props): ReactElement | null => {

if (url) {
return (
<LinkBox href={url} target="_blank">
<LinkBox href={url} target="_blank" rel="nofollow">
<Icon icon="person" /> {username || 'User'}
</LinkBox>
);
Expand Down
Loading