profile_id or user_name.lower() everywhere #194

This commit is contained in:
rimu 2024-06-04 09:49:54 +12:00
parent cf3dec5768
commit 0bde39b8a3

View file

@ -255,7 +255,7 @@ def user_profile(actor):
server = current_app.config['SERVER_NAME']
actor_data = { "@context": default_context(),
"type": "Person" if not user.bot else "Service",
"id": f"https://{server}/u/{actor.lower()}",
"id": user.profile_id(),
"preferredUsername": actor.lower(),
"name": user.title if user.title else user.user_name,
"inbox": f"https://{server}/u/{actor.lower()}/inbox",