Undo some lower() calls

This commit is contained in:
freamon 2024-06-06 00:09:17 +01:00
parent e0f43e9d96
commit e64ae00a44
2 changed files with 4 additions and 4 deletions

View file

@ -256,10 +256,10 @@ def user_profile(actor):
actor_data = { "@context": default_context(),
"type": "Person" if not user.bot else "Service",
"id": user.public_url(),
"preferredUsername": actor.lower(),
"preferredUsername": actor,
"name": user.title if user.title else user.user_name,
"inbox": f"https://{server}/u/{actor.lower()}/inbox",
"outbox": f"https://{server}/u/{actor.lower()}/outbox",
"inbox": f"{user.public_url()}/inbox",
"outbox": f"{user.public_url()}/outbox",
"discoverable": user.searchable,
"indexable": user.indexable,
"manuallyApprovesFollowers": False if not user.ap_manually_approves_followers else user.ap_manually_approves_followers,

View file

@ -490,7 +490,7 @@ def refresh_user_profile_task(user_id):
{'user_id': user.id,
'indexable': new_indexable})
user.user_name = activity_json['preferredUsername'].lower()
user.user_name = activity_json['preferredUsername']
if 'name' in activity_json:
user.title = activity_json['name']
user.about_html = parse_summary(activity_json)