Skip to content

Commit

Permalink
Add X alternatives to Social Links (#10475)
Browse files Browse the repository at this point in the history
* feat: add BluesSky and Threads types

* chore: update schemas
  • Loading branch information
kewitz authored Nov 19, 2024
1 parent 7f3ba4d commit 7fc5e14
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 45 deletions.
32 changes: 17 additions & 15 deletions server/graphql/schemaV1.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -967,27 +967,29 @@ type SocialLink {
The type of social link
"""
enum SocialLinkType {
TWITTER
TUMBLR
MASTODON
MATTERMOST
SLACK
LINKEDIN
MEETUP
FACEBOOK
INSTAGRAM
BLUESKY
DISCORD
YOUTUBE
GITHUB
GITLAB
GIT
WEBSITE
DISCOURSE
PIXELFED
FACEBOOK
GHOST
GIT
GITHUB
GITLAB
INSTAGRAM
LINKEDIN
MASTODON
MATTERMOST
MEETUP
PEERTUBE
PIXELFED
SLACK
THREADS
TIKTOK
TUMBLR
TWITCH
TWITTER
WEBSITE
YOUTUBE
}

"""
Expand Down
37 changes: 22 additions & 15 deletions server/graphql/schemaV2.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1030,27 +1030,29 @@ type SocialLink {
The type of social link
"""
enum SocialLinkType {
TWITTER
TUMBLR
MASTODON
MATTERMOST
SLACK
LINKEDIN
MEETUP
FACEBOOK
INSTAGRAM
BLUESKY
DISCORD
YOUTUBE
GITHUB
GITLAB
GIT
WEBSITE
DISCOURSE
PIXELFED
FACEBOOK
GHOST
GIT
GITHUB
GITLAB
INSTAGRAM
LINKEDIN
MASTODON
MATTERMOST
MEETUP
PEERTUBE
PIXELFED
SLACK
THREADS
TIKTOK
TUMBLR
TWITCH
TWITTER
WEBSITE
YOUTUBE
}

"""
Expand Down Expand Up @@ -20231,6 +20233,11 @@ type Mutation {
Reference of the transaction to refund
"""
transaction: TransactionReferenceInput!

"""
If true, the refund will be processed even if it exceeds the balance of the Collective
"""
ignoreBalanceCheck: Boolean
): Transaction

"""
Expand Down
32 changes: 17 additions & 15 deletions server/models/SocialLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,29 @@ import sequelize, { DataTypes, Model } from '../lib/sequelize';
import Collective from './Collective';

export enum SocialLinkType {
TWITTER = 'TWITTER',
TUMBLR = 'TUMBLR',
MASTODON = 'MASTODON',
MATTERMOST = 'MATTERMOST',
SLACK = 'SLACK',
LINKEDIN = 'LINKEDIN',
MEETUP = 'MEETUP',
FACEBOOK = 'FACEBOOK',
INSTAGRAM = 'INSTAGRAM',
BLUESKY = 'BLUESKY',
DISCORD = 'DISCORD',
YOUTUBE = 'YOUTUBE',
GITHUB = 'GITHUB',
GITLAB = 'GITLAB',
GIT = 'GIT',
WEBSITE = 'WEBSITE',
DISCOURSE = 'DISCOURSE',
PIXELFED = 'PIXELFED',
FACEBOOK = 'FACEBOOK',
GHOST = 'GHOST',
GIT = 'GIT',
GITHUB = 'GITHUB',
GITLAB = 'GITLAB',
INSTAGRAM = 'INSTAGRAM',
LINKEDIN = 'LINKEDIN',
MASTODON = 'MASTODON',
MATTERMOST = 'MATTERMOST',
MEETUP = 'MEETUP',
PEERTUBE = 'PEERTUBE',
PIXELFED = 'PIXELFED',
SLACK = 'SLACK',
THREADS = 'THREADS',
TIKTOK = 'TIKTOK',
TUMBLR = 'TUMBLR',
TWITCH = 'TWITCH',
TWITTER = 'TWITTER',
WEBSITE = 'WEBSITE',
YOUTUBE = 'YOUTUBE',
}

class SocialLink extends Model<InferAttributes<SocialLink>, InferCreationAttributes<SocialLink>> {
Expand Down

0 comments on commit 7fc5e14

Please sign in to comment.