From f840c69a815e0a30ec95273464702b86a64d009d Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 15 Dec 2021 22:31:18 -0500 Subject: [PATCH] use username in urls --- mastodon/api.py | 1 + users/templates/users/book_list.html | 6 ++--- users/templates/users/data.html | 2 +- users/templates/users/game_list.html | 6 ++--- users/templates/users/home.html | 30 ++++++++++++------------ users/templates/users/movie_list.html | 6 ++--- users/templates/users/music_list.html | 6 ++--- users/templates/users/preferences.html | 2 +- users/templates/users/relation_list.html | 6 ++--- users/urls.py | 2 ++ 10 files changed, 35 insertions(+), 32 deletions(-) diff --git a/mastodon/api.py b/mastodon/api.py index a09f57b8..d00fb6d2 100644 --- a/mastodon/api.py +++ b/mastodon/api.py @@ -161,6 +161,7 @@ def get_cross_site_id(target_user, target_site, token): cross_site_id = get_site_id( target_user.username, target_user.mastodon_site, target_site, token) if not cross_site_id: + print(f'unable to find cross_site_id for {target_user} on {target_site}') return None cross_site_info = CrossSiteUserInfo.objects.create( uid=f"{target_user.username}@{target_user.mastodon_site}", diff --git a/users/templates/users/book_list.html b/users/templates/users/book_list.html index 5ca44c85..fc6ddbad 100644 --- a/users/templates/users/book_list.html +++ b/users/templates/users/book_list.html @@ -176,7 +176,7 @@
- +
@@ -206,7 +206,7 @@
{% trans '关注的人' %}
- {% trans '更多' %}