Skip to content

Commit b0a4c2b

Browse files
committed
feat: Replace Twitter with X
1 parent df1d91e commit b0a4c2b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lms/envs/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2860,10 +2860,10 @@
28602860
'url_stub': 'facebook.com/',
28612861
'example': 'https://www.facebook.com/username'
28622862
},
2863-
'twitter': {
2864-
'display_name': 'Twitter',
2865-
'url_stub': 'twitter.com/',
2866-
'example': 'https://www.twitter.com/username'
2863+
'x': {
2864+
'display_name': 'X',
2865+
'url_stub': 'x.com/',
2866+
'example': 'https://www.x.com/username'
28672867
},
28682868
'linkedin': {
28692869
'display_name': 'LinkedIn',

openedx/core/djangoapps/user_api/accounts/serializers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ class Meta:
9999

100100
def validate_platform(self, platform):
101101
"""
102-
Validate that the platform value is one of (facebook, twitter or linkedin)
102+
Validate that the platform value is one of (facebook, x or linkedin)
103103
"""
104-
valid_platforms = ["facebook", "twitter", "linkedin"]
104+
valid_platforms = ["facebook", "x", "linkedin"]
105105
if platform not in valid_platforms:
106106
raise serializers.ValidationError(
107-
"The social platform must be facebook, twitter or linkedin"
107+
"The social platform must be facebook, x or linkedin"
108108
)
109109
return platform
110110

0 commit comments

Comments
 (0)