Skip to content

Commit 5072c22

Browse files
committed
feat: Replace Twitter with X
1 parent ef49090 commit 5072c22

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
@@ -4304,10 +4304,10 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring
43044304
'url_stub': 'facebook.com/',
43054305
'example': 'https://www.facebook.com/username'
43064306
},
4307-
'twitter': {
4308-
'display_name': 'Twitter',
4309-
'url_stub': 'twitter.com/',
4310-
'example': 'https://www.twitter.com/username'
4307+
'x': {
4308+
'display_name': 'X',
4309+
'url_stub': 'x.com/',
4310+
'example': 'https://www.x.com/username'
43114311
},
43124312
'linkedin': {
43134313
'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)