mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
Undo some lower() calls
This commit is contained in:
parent
e0f43e9d96
commit
e64ae00a44
2 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue