fix user home page link issue
This commit is contained in:
parent
450296b4b7
commit
6eebfe67b8
5 changed files with 8 additions and 8 deletions
|
@ -86,7 +86,7 @@ if DEBUG:
|
||||||
'NAME': 'test',
|
'NAME': 'test',
|
||||||
'USER': 'donotban',
|
'USER': 'donotban',
|
||||||
'PASSWORD': 'donotbansilvousplait',
|
'PASSWORD': 'donotbansilvousplait',
|
||||||
'HOST': '192.168.13.68',
|
'HOST': '172.18.96.109',
|
||||||
'OPTIONS': {
|
'OPTIONS': {
|
||||||
'client_encoding': 'UTF8',
|
'client_encoding': 'UTF8',
|
||||||
# 'isolation_level': psycopg2.extensions.ISOLATION_LEVEL_DEFAULT,
|
# 'isolation_level': psycopg2.extensions.ISOLATION_LEVEL_DEFAULT,
|
||||||
|
@ -173,8 +173,8 @@ AUTH_USER_MODEL = 'users.User'
|
||||||
MEDIA_URL = '/media/'
|
MEDIA_URL = '/media/'
|
||||||
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
|
MEDIA_ROOT = os.path.join(BASE_DIR, 'media/')
|
||||||
|
|
||||||
CLIENT_ID = 'kEbwT9Je5HHg4FoLx4nb0tNaIrPNs5Mw6AYlQlsj2_4'
|
CLIENT_ID = 'kEbwT9Je5HsadfNs5Mw6Asht456YlQl54t4sj2_4'
|
||||||
CLIENT_SECRET = 'xwmEvlmudLCkBmvdzGf8m41Ug5o5di9xnDqeVLrcKSg'
|
CLIENT_SECRET = 'xwmEvlmudLCkBmvdzGf8msdfgsdfggs5di9xnDqeVLrcKSg'
|
||||||
|
|
||||||
# Path to save report related images, ends without slash
|
# Path to save report related images, ends without slash
|
||||||
REPORT_MEDIA_PATH_ROOT = 'report/'
|
REPORT_MEDIA_PATH_ROOT = 'report/'
|
||||||
|
|
|
@ -202,7 +202,7 @@
|
||||||
<div id="mastodonURI" hidden="true">{% mastodon %}</div>
|
<div id="mastodonURI" hidden="true">{% mastodon %}</div>
|
||||||
<!--current user mastodon id-->
|
<!--current user mastodon id-->
|
||||||
<div id="userMastodonID" hidden="true">{{ user.mastodon_id }}</div>
|
<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="spinner" id="spinner" hidden>
|
||||||
<div class="lds-spinner">
|
<div class="lds-spinner">
|
||||||
<div></div>
|
<div></div>
|
||||||
|
|
|
@ -53,7 +53,7 @@ $(document).ready( function() {
|
||||||
} else {
|
} else {
|
||||||
temp.find("a").text(data.username);
|
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);
|
temp.find("a").attr('href', url);
|
||||||
$(".mast-followers").append(temp);
|
$(".mast-followers").append(temp);
|
||||||
});
|
});
|
||||||
|
@ -84,7 +84,7 @@ $(document).ready( function() {
|
||||||
} else {
|
} else {
|
||||||
temp.find("a").text(data.username);
|
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);
|
temp.find("a").attr('href', url);
|
||||||
$(".mast-following").append(temp);
|
$(".mast-following").append(temp);
|
||||||
});
|
});
|
||||||
|
|
|
@ -177,7 +177,7 @@
|
||||||
<div id="mastodonURI" hidden="true">{% mastodon %}</div>
|
<div id="mastodonURI" hidden="true">{% mastodon %}</div>
|
||||||
<!--current user mastodon id-->
|
<!--current user mastodon id-->
|
||||||
<div id="userMastodonID" hidden="true">{{ user.mastodon_id }}</div>
|
<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="spinner" id="spinner" hidden>
|
||||||
<div class="lds-spinner">
|
<div class="lds-spinner">
|
||||||
<div></div>
|
<div></div>
|
||||||
|
|
|
@ -124,7 +124,7 @@
|
||||||
<div id="mastodonURI" hidden="true">{% mastodon %}</div>
|
<div id="mastodonURI" hidden="true">{% mastodon %}</div>
|
||||||
<!--current user mastodon id-->
|
<!--current user mastodon id-->
|
||||||
<div id="userMastodonID" hidden="true">{{ user.mastodon_id }}</div>
|
<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="spinner" id="spinner" hidden>
|
||||||
<div class="lds-spinner">
|
<div class="lds-spinner">
|
||||||
<div></div>
|
<div></div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue