mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
profile_id or user_name.lower() everywhere #194
This commit is contained in:
parent
cf3dec5768
commit
0bde39b8a3
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue