fix user home page link issue

This commit is contained in:
doubaniux 2020-05-07 16:23:57 +08:00
parent 450296b4b7
commit 6eebfe67b8
5 changed files with 8 additions and 8 deletions

View file

@ -86,7 +86,7 @@ if DEBUG:
'NAME': 'test',
'USER': 'donotban',
'PASSWORD': 'donotbansilvousplait',
'HOST': '192.168.13.68',
'HOST': '172.18.96.109',
'OPTIONS': {
'client_encoding': 'UTF8',
# 'isolation_level': psycopg2.extensions.ISOLATION_LEVEL_DEFAULT,
@ -173,8 +173,8 @@ AUTH_USER_MODEL = 'users.User'
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
CLIENT_ID = 'kEbwT9Je5HHg4FoLx4nb0tNaIrPNs5Mw6AYlQlsj2_4'
CLIENT_SECRET = 'xwmEvlmudLCkBmvdzGf8m41Ug5o5di9xnDqeVLrcKSg'
CLIENT_ID = 'kEbwT9Je5HsadfNs5Mw6Asht456YlQl54t4sj2_4'
CLIENT_SECRET = 'xwmEvlmudLCkBmvdzGf8msdfgsdfggs5di9xnDqeVLrcKSg'
# Path to save report related images, ends without slash
REPORT_MEDIA_PATH_ROOT = 'report/'

View file

@ -202,7 +202,7 @@
<div id="mastodonURI" hidden="true">{% mastodon %}</div>
<!--current user mastodon id-->
<div id="userMastodonID" hidden="true">{{ user.mastodon_id }}</div>
<div id="userPageURL" hidden="true">{% url 'users:home' 0 %}</div>
<div id="userPageURL" hidden="true">{% url 'users:home' 0 %}?is_mastodon_id=true</div>
<div class="spinner" id="spinner" hidden>
<div class="lds-spinner">
<div></div>

View file

@ -53,7 +53,7 @@ $(document).ready( function() {
} else {
temp.find("a").text(data.username);
}
let url = $("#userPageURL").text().replace('0', data.id) + "?is_mastodon_id=true";
let url = $("#userPageURL").text().replace('0', data.id);
temp.find("a").attr('href', url);
$(".mast-followers").append(temp);
});
@ -84,7 +84,7 @@ $(document).ready( function() {
} else {
temp.find("a").text(data.username);
}
let url = $("#userPageURL").text().replace('0', data.id) + "?is_mastodon_id=true";
let url = $("#userPageURL").text().replace('0', data.id);
temp.find("a").attr('href', url);
$(".mast-following").append(temp);
});

View file

@ -177,7 +177,7 @@
<div id="mastodonURI" hidden="true">{% mastodon %}</div>
<!--current user mastodon id-->
<div id="userMastodonID" hidden="true">{{ user.mastodon_id }}</div>
<div id="userPageURL" hidden="true">{% url 'users:home' 0 %}</div>
<div id="userPageURL" hidden="true">{% url 'users:home' 0 %}?is_mastodon_id=true</div>
<div class="spinner" id="spinner" hidden>
<div class="lds-spinner">
<div></div>

View file

@ -124,7 +124,7 @@
<div id="mastodonURI" hidden="true">{% mastodon %}</div>
<!--current user mastodon id-->
<div id="userMastodonID" hidden="true">{{ user.mastodon_id }}</div>
<div id="userPageURL" hidden="true">{% url 'users:home' 0 %}</div>
<div id="userPageURL" hidden="true">{% url 'users:home' 0 %}?is_mastodon_id=true</div>
<div class="spinner" id="spinner" hidden>
<div class="lds-spinner">
<div></div>