Skip to content

Commit 0a19eb5

Browse files
authored
Merge pull request #25 from jhancock532/remove-whatsapp-direct-links
Remove all direct WhatsApp links to prevent bot spam heading into groups
2 parents ce01e7f + 3d7cca9 commit 0a19eb5

File tree

8 files changed

+9
-39
lines changed

8 files changed

+9
-39
lines changed

.cursor/rules/NewGroup.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type Group = {
2929

3030
```typescript
3131
type Link = {
32-
type: string; // e.g., 'Discord', 'WhatsApp', 'Meetup', 'Facebook', 'Instagram', 'TikTok', 'Website'
32+
type: string; // e.g., 'Discord', 'Meetup', 'Facebook', 'Instagram', 'TikTok', 'Website'
3333
url: string; // The full URL to the resource
3434
text?: string; // Optional display text (defaults to "View group's website")
3535
};

data/groups/bristol-nerds/details.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,20 @@
22
"name": "Bristol Nerds",
33
"slug": "bristol-nerds",
44
"description": "An active social community for people who are interested in things of the nerdy variety, including videogames, boardgames, science fiction, fantasy, anime, science, history, and technology.",
5-
"details": "The group has many sub-groups on WhatsApp for organising more informal events, with the main events posted on Meetup.",
5+
"details": "The group has many sub-groups on WhatsApp around common interests, with the main events posted on Meetup. You can join the WhatsApp chats by visiting the Linktree website.",
66
"tags": [
77
"gaming",
88
"board games"
99
],
1010
"links": [
1111
{
12-
"type": "Meetup",
13-
"url": "https://www.meetup.com/bristol-nerds/"
12+
"type": "Website",
13+
"url": "https://linktr.ee/BristolNerds",
14+
"text": "See all links on Linktree"
1415
},
1516
{
16-
"type": "WhatsApp",
17-
"url": "https://chat.whatsapp.com/LXTiwe8s7CjHQV1zep7FhX"
17+
"type": "Meetup",
18+
"url": "https://www.meetup.com/bristol-nerds/"
1819
}
1920
]
2021
}

data/groups/local-legends-run-club/details.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Local Legends Run Club",
33
"slug": "local-legends-run-club",
4-
"description": "A friendly, social run club meeting every Wednesday for a 5k run (rain or shine) and finishing with some great chats over drinks. All levels of runners are welcome. Feel free to join our WhatsApp group for more details and updates, linked below.",
4+
"description": "A friendly, social run club meeting every Wednesday for a 5k run (rain or shine) and finishing with some great chats over drinks. All levels of runners are welcome. Join our WhatsApp group for more details and updates, linked on our Instagram page.",
55
"details": "",
66
"tags": [
77
"running",
@@ -11,10 +11,6 @@
1111
{
1212
"type": "Instagram",
1313
"url": "https://www.instagram.com/locallegendsrunclub/"
14-
},
15-
{
16-
"type": "WhatsApp",
17-
"url": "https://chat.whatsapp.com/KDnBv98pJFyGV1UXZkKzoC"
1814
}
1915
],
2016
"events": [

data/groups/wind-and-easel/details.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
{
99
"type": "Instagram",
1010
"url": "https://www.instagram.com/windandeasel/"
11-
},
12-
{
13-
"type": "WhatsApp",
14-
"url": "https://chat.whatsapp.com/ExN1f6pSHoxGeQUMVX18uP"
1511
}
1612
]
1713
}

src/components/GroupCard/GroupCard.stories.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,3 @@ export const DiscordGroup: Story = {
6565
],
6666
},
6767
};
68-
69-
export const WhatsappGroup: Story = {
70-
args: {
71-
...Default.args,
72-
name: 'Group that arranges events on WhatsApp',
73-
events: undefined,
74-
links: [
75-
{
76-
type: 'WhatsApp',
77-
url: 'https://example.com/group',
78-
},
79-
],
80-
},
81-
};

src/components/GroupCard/GroupCard.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { Event } from '@/types/Event';
88
import { Link as LinkType, Subscription } from '@/types/base';
99

1010
import styles from './GroupCard.module.scss';
11-
import { WhatsappIcon } from '../Icons/WhatsappIcon';
1211

1312
type GroupLinkProps = {
1413
link: LinkType;
@@ -23,13 +22,6 @@ const GroupLink = ({ link }: GroupLinkProps) => {
2322
server
2423
</>
2524
);
26-
case 'WhatsApp':
27-
return (
28-
<>
29-
<WhatsappIcon className={styles.icon} /> Join the WhatsApp
30-
group chat
31-
</>
32-
);
3325
case 'Meetup':
3426
return (
3527
<>

src/stories/mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const MOCK_GROUPS: Group[] = [
114114
links: [
115115
{
116116
url: 'https://lorem.ipsum/dolor',
117-
type: 'WhatsApp',
117+
type: 'Meetup',
118118
},
119119
],
120120
},

src/types/base.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export type Link = {
22
type:
33
| 'Discord'
4-
| 'WhatsApp'
54
| 'Meetup'
65
| 'Facebook'
76
| 'Instagram'

0 commit comments

Comments
 (0)