Skip to content

Commit b647dcc

Browse files
committed
feat: Replace Twitter with X
1 parent 58ab4c3 commit b647dcc

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

lms/envs/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4293,10 +4293,10 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring
42934293
'url_stub': 'facebook.com/',
42944294
'example': 'https://www.facebook.com/username'
42954295
},
4296-
'twitter': {
4297-
'display_name': 'Twitter',
4298-
'url_stub': 'twitter.com/',
4299-
'example': 'https://www.twitter.com/username'
4296+
'x': {
4297+
'display_name': 'X',
4298+
'url_stub': 'x.com/',
4299+
'example': 'https://www.x.com/username'
43004300
},
43014301
'linkedin': {
43024302
'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)