File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
openedx/core/djangoapps/user_api/accounts Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments