Skip to content

Commit 31c522a

Browse files
committed
feat: Replace Twitter with X
1 parent 7b739ea commit 31c522a

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
@@ -4316,10 +4316,10 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring
43164316
'url_stub': 'facebook.com/',
43174317
'example': 'https://www.facebook.com/username'
43184318
},
4319-
'twitter': {
4320-
'display_name': 'Twitter',
4321-
'url_stub': 'twitter.com/',
4322-
'example': 'https://www.twitter.com/username'
4319+
'x': {
4320+
'display_name': 'X',
4321+
'url_stub': 'x.com/',
4322+
'example': 'https://www.x.com/username'
43234323
},
43244324
'linkedin': {
43254325
'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)