Bugfixes,Pleroma compatibility,translation updates

This commit is contained in:
nipos 2019-01-31 17:53:40 +01:00
parent 85c7fd08c0
commit d27e451723
20 changed files with 712 additions and 65 deletions

View File

@ -26,6 +26,7 @@ We moved our instances list to a wiki page: https://notabug.org/halcyon-suite/ha
or read our new wiki pages to install it manually: https://notabug.org/halcyon-suite/halcyon/wiki or read our new wiki pages to install it manually: https://notabug.org/halcyon-suite/halcyon/wiki
## Blog ## Blog
- Release of Version 2.2.1 - Many small bugfixes (details see release notes) and improved compatibility to the new Pleroma API,update Galician and Italian translations
- [Release of Version 2.2.0 - Privacy-focused media streaming and more](https://nikisoft.myblog.de/nikisoft/art/11644403/Privacy-focused-media-streaming-and-more-The-new-Halcyon-2-2-0) - [Release of Version 2.2.0 - Privacy-focused media streaming and more](https://nikisoft.myblog.de/nikisoft/art/11644403/Privacy-focused-media-streaming-and-more-The-new-Halcyon-2-2-0)
- Release of Version 2.1.6 - Added search suggestions,fixed autocomplete bug,added instance info page,fixed small bug in profile settings,search for posts now supported - Release of Version 2.1.6 - Added search suggestions,fixed autocomplete bug,added instance info page,fixed small bug in profile settings,search for posts now supported
- Release of Version 2.1.5 - Added support for filter,added possibility to filter all bots,it's now easier to detect bots - Release of Version 2.1.5 - Added support for filter,added possibility to filter all bots,it's now easier to detect bots

View File

@ -1018,6 +1018,9 @@ font-weight: 600;
.timeline .notice_entry .toot_content .toot_header a .username { .timeline .notice_entry .toot_content .toot_header a .username {
color: #66757F; color: #66757F;
} }
.timeline .toot_entry .toot_content .toot_article .status_content p:not(:last-child) {
margin-bottom:20px;
}
.timeline_footer { .timeline_footer {
padding: 24px; padding: 24px;
background-color: #fff; background-color: #fff;
@ -2397,6 +2400,9 @@ color: #fff;
.toot_detail.main_status .toot_content .toot_article.content_warning .status_content { .toot_detail.main_status .toot_content .toot_article.content_warning .status_content {
display: none; display: none;
} }
.toot_detail.main_status .toot_content .toot_article .status_content p:not(:last-child) {
margin-bottom:30px;
}
.toot_detail.main_status .toot_content a { .toot_detail.main_status .toot_content a {
color: #189EFC; color: #189EFC;
} }

View File

@ -36,7 +36,10 @@ if(data.accounts[i].display_name == "") data.accounts[i].display_name = data.acc
for(var a=0;a<data.accounts[i].emojis.length;a++) { for(var a=0;a<data.accounts[i].emojis.length;a++) {
data.accounts[i].display_name = data.accounts[i].display_name.replace(new RegExp(":"+data.accounts[i].emojis[a].shortcode+":","g"),"<img src='"+data.accounts[i].emojis[a].url+"' class='emoji'>"); data.accounts[i].display_name = data.accounts[i].display_name.replace(new RegExp(":"+data.accounts[i].emojis[a].shortcode+":","g"),"<img src='"+data.accounts[i].emojis[a].url+"' class='emoji'>");
} }
dropdown.append($("<li>").data("value",getRelativeURL(data.accounts[i].url,data.accounts[i].id)).addClass("account_box").append($("<div>").addClass("icon_box").append($("<img>").attr("src",data.accounts[i].avatar).css("float","left"))) var account_link;
if(data.accounts[i].acct.indexOf("@") == -1) account_link = "/@"+data.accounts[i].acct+"@"+current_instance+"?mid="+data.accounts[i].id;
else account_link = "/@"+data.accounts[i].acct+"?mid="+data.accounts[i].id;
dropdown.append($("<li>").data("value",account_link).addClass("account_box").append($("<div>").addClass("icon_box").append($("<img>").attr("src",data.accounts[i].avatar).css("float","left")))
.append($("<div>").addClass("label_box").css("width","unset").append($("<span>").addClass("dn").append($("<h3>").html(data.accounts[i].display_name).addClass("emoji_poss"))).append($("<span>").addClass("un").html(data.accounts[i].acct))).click(function() { .append($("<div>").addClass("label_box").css("width","unset").append($("<span>").addClass("dn").append($("<h3>").html(data.accounts[i].display_name).addClass("emoji_poss"))).append($("<span>").addClass("un").html(data.accounts[i].acct))).click(function() {
window.location.href = $(this).data("value"); window.location.href = $(this).data("value");
})); }));

View File

@ -13,6 +13,7 @@ if ( array.length >= 4 ) {
if ( !options ) { if ( !options ) {
var options = "" var options = ""
}; };
if(array[array.length-1] == "") array[array.length-1] = "blog";
if (id) { if (id) {
if (array[array.length-1].substr(0,1) === '@') { if (array[array.length-1].substr(0,1) === '@') {
const link= '/'+array[array.length-1]+'@'+array[2]+options+'?mid='+id+'&'; const link= '/'+array[array.length-1]+'@'+array[2]+options+'?mid='+id+'&';
@ -205,6 +206,10 @@ instance: 'https://'+current_instance,
api_user_token: authtoken api_user_token: authtoken
}); });
api.get("accounts/verify_credentials",function(AccountObj) { api.get("accounts/verify_credentials",function(AccountObj) {
AccountObj.display_name = htmlEscape(AccountObj.display_name);
for(var i=0;i<AccountObj.emojis.length;i++) {
AccountObj.display_name = AccountObj.display_name.replace(new RegExp(":"+AccountObj.emojis[i].shortcode+":","g"),"<img src='"+AccountObj.emojis[i].url+"' class='emoji'>");
}
localStorage.setItem("current_display_name",AccountObj["display_name"]); localStorage.setItem("current_display_name",AccountObj["display_name"]);
localStorage.setItem("current_acct",AccountObj["acct"]); localStorage.setItem("current_acct",AccountObj["acct"]);
localStorage.setItem("current_url",getRelativeURL(AccountObj["url"],AccountObj["id"])); localStorage.setItem("current_url",getRelativeURL(AccountObj["url"],AccountObj["id"]));
@ -328,7 +333,7 @@ var is_account_locked = "";
if(current_locked == "true") { if(current_locked == "true") {
is_account_locked = " <i class='fa fa-lock'></i>"; is_account_locked = " <i class='fa fa-lock'></i>";
} }
$(".js_current_profile_displayname").text(current_display_name); $(".js_current_profile_displayname").html(current_display_name);
$(".js_current_profile_username").html(current_acct+is_account_locked); $(".js_current_profile_username").html(current_acct+is_account_locked);
$(".js_current_profile_link").attr("href", current_url); $(".js_current_profile_link").attr("href", current_url);
$(".js_current_header_image").attr("src", current_header); $(".js_current_header_image").attr("src", current_header);
@ -448,8 +453,11 @@ search.accounts[0].display_name = search.accounts[0].display_name.replace(new Re
if(search.accounts[0].display_name.length == 0) { if(search.accounts[0].display_name.length == 0) {
search.accounts[0].display_name = search.accounts[0].username; search.accounts[0].display_name = search.accounts[0].username;
} }
var wtf_account_link;
if(search.accounts[0].acct.indexOf("@") == -1) wtf_account_link = "/@"+search.accounts[0].acct+"@"+current_instance+"?mid="+search.accounts[0].id;
else wtf_account_link = "/@"+search.accounts[0].acct+"?mid="+search.accounts[0].id;
$('.what_to_follow_'+id+' > .icon_box img').attr('src',search.accounts[0].avatar); $('.what_to_follow_'+id+' > .icon_box img').attr('src',search.accounts[0].avatar);
$('.what_to_follow_'+id+' .label_box > a').attr('href',getRelativeURL(search.accounts[0].url,search.accounts[0].id)); $('.what_to_follow_'+id+' .label_box > a').attr('href',wtf_account_link);
$('.what_to_follow_'+id+' .label_box > a > h3 .dn').addClass("emoji_poss").html(search.accounts[0].display_name); $('.what_to_follow_'+id+' .label_box > a > h3 .dn').addClass("emoji_poss").html(search.accounts[0].display_name);
$('.what_to_follow_'+id+' .label_box > a > h3 .un').text('@'+search.accounts[0].username); $('.what_to_follow_'+id+' .label_box > a > h3 .un').text('@'+search.accounts[0].username);
$('.what_to_follow_'+id+' .label_box > .follow_button').attr('mid',search.accounts[0].id); $('.what_to_follow_'+id+' .label_box > .follow_button').attr('mid',search.accounts[0].id);

View File

@ -380,13 +380,13 @@ $("#setting_play_audio")[0].checked = true;
if(localStorage.setting_play_peertube == "true") { if(localStorage.setting_play_peertube == "true") {
$("#setting_play_peertube")[0].checked = true; $("#setting_play_peertube")[0].checked = true;
} }
if(localStorage.setting_play_youplay == "true" && $("#settings_play_youplay").length == 1) { if(localStorage.setting_play_youplay == "true" && $("#setting_play_youplay").length == 1) {
$("#setting_play_youplay")[0].checked = true; $("#setting_play_youplay")[0].checked = true;
} }
if(localStorage.setting_play_invidious == "true" && $("#settings_play_invidious").length == 1) { if(localStorage.setting_play_invidious == "true" && $("#setting_play_invidious").length == 1) {
$("#setting_play_invidious")[0].checked = true; $("#setting_play_invidious")[0].checked = true;
} }
if(localStorage.setting_play_vimeo == "true" && $("#settings_play_vimeo").length == 1) { if(localStorage.setting_play_vimeo == "true" && $("#setting_play_vimeo").length == 1) {
$("#setting_play_vimeo")[0].checked = true; $("#setting_play_vimeo")[0].checked = true;
} }
}); });

View File

@ -91,8 +91,10 @@ writtenby.username = status.account.username;
writtenby.url = status.account.url; writtenby.url = status.account.url;
writtenby.acct = status.account.acct; writtenby.acct = status.account.acct;
status.mentions.push(writtenby); status.mentions.push(writtenby);
const status_account_link= getRelativeURL(status.account.url, status.account.id), var status_account_link;
status_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, status.created_at)), if(status.account.acct.indexOf("@") == -1) status_account_link = "/@"+status.account.acct+"@"+current_instance+"?mid="+status.account.id;
else status_account_link = "/@"+status.account.acct+"?mid="+status.account.id;
const status_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, status.created_at)),
status_attr_datetime = getConversionedDate(null, status.created_at); status_attr_datetime = getConversionedDate(null, status.created_at);
let alart_text= "", let alart_text= "",
article_option= "", article_option= "",
@ -242,9 +244,12 @@ writtenby.url = status.reblog.account.url;
writtenby.acct = status.reblog.account.acct; writtenby.acct = status.reblog.account.acct;
status.reblog.mentions.push(writtenby); status.reblog.mentions.push(writtenby);
const status_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, status.reblog.created_at)), const status_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, status.reblog.created_at)),
status_attr_datetime = getConversionedDate(null, status.reblog.created_at), status_attr_datetime = getConversionedDate(null, status.reblog.created_at);
status_reblog_account_link = getRelativeURL(status.reblog.account.url, status.reblog.account.id), var status_reblog_account_link,status_account_link;
status_account_link= getRelativeURL(status.account.url, status.account.id); if(status.reblog.account.acct.indexOf("@") == -1) status_reblog_account_link = "/@"+status.reblog.account.acct+"@"+current_instance+"?mid="+status.reblog.account.id;
else status_reblog_account_link = "/@"+status.reblog.account.acct+"?mid="+status.reblog.account.id;
if(status.account.acct.indexOf("@") == -1) status_account_link = "/@"+status.account.acct+"@"+current_instance+"?mid="+status.account.id;
else status_account_link = "/@"+status.account.acct+"?mid="+status.account.id;
let alart_text= "", let alart_text= "",
article_option= "", article_option= "",
toot_reblogs_count= "", toot_reblogs_count= "",
@ -388,9 +393,11 @@ writtenby.username = status.account.username;
writtenby.url = status.account.url; writtenby.url = status.account.url;
writtenby.acct = status.account.acct; writtenby.acct = status.account.acct;
status.mentions.push(writtenby); status.mentions.push(writtenby);
var status_account_link;
if(status.account.acct.indexOf("@") == -1) status_account_link = "/@"+status.account.acct+"@"+current_instance+"?mid="+status.account.id;
else status_account_link = "/@"+status.account.acct+"?mid="+status.account.id;
const status_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, status.created_at)), const status_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, status.created_at)),
status_attr_datetime = getConversionedDate(null, status.created_at), status_attr_datetime = getConversionedDate(null, status.created_at);
status_account_link= getRelativeURL(status.account.url, status.account.id);
let alart_text= "", let alart_text= "",
article_option= "", article_option= "",
toot_reblogs_count= "", toot_reblogs_count= "",
@ -510,7 +517,9 @@ html.find(".toot_article").append(media_views);
return html return html
} }
function notifications_template(NotificationObj) { function notifications_template(NotificationObj) {
const notice_author_link = getRelativeURL(NotificationObj.account.url, NotificationObj.account.id); var notice_author_link;
if(NotificationObj.account.acct.indexOf("@") == -1) notice_author_link = "/@"+NotificationObj.account.acct+"@"+current_instance+"?mid="+NotificationObj.account.id;
else notice_author_link = "/@"+NotificationObj.account.acct+"?mid="+NotificationObj.account.id;
if(NotificationObj.account.display_name.length == 0) { if(NotificationObj.account.display_name.length == 0) {
NotificationObj.account.display_name = NotificationObj.account.username; NotificationObj.account.display_name = NotificationObj.account.username;
} }
@ -519,8 +528,10 @@ for(i=0;i<NotificationObj.account.emojis.length;i++) {
NotificationObj.account.display_name = NotificationObj.account.display_name.replace(new RegExp(":"+NotificationObj.account.emojis[i].shortcode+":","g"),"<img src='"+NotificationObj.account.emojis[i].url+"' class='emoji'>"); NotificationObj.account.display_name = NotificationObj.account.display_name.replace(new RegExp(":"+NotificationObj.account.emojis[i].shortcode+":","g"),"<img src='"+NotificationObj.account.emojis[i].url+"' class='emoji'>");
} }
if ( NotificationObj.type === 'favourite' | NotificationObj.type === 'reblog' ) { if ( NotificationObj.type === 'favourite' | NotificationObj.type === 'reblog' ) {
const toot_author_link = getRelativeURL(NotificationObj.status.account.url, NotificationObj.status.account.id), var toot_author_link;
toot_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, NotificationObj.status.created_at)), if(NotificationObj.status.account.acct.indexOf("@") == -1) toot_author_link = "/@"+NotificationObj.status.account.acct+"@"+current_instance+"?mid="+NotificationObj.status.account.id;
else toot_author_link = "/@"+NotificationObj.status.account.acct+"?mid="+NotificationObj.status.account.id;
const toot_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, NotificationObj.status.created_at)),
toot_attr_datetime = getConversionedDate(null, NotificationObj.status.created_at); toot_attr_datetime = getConversionedDate(null, NotificationObj.status.created_at);
if( NotificationObj.type=='favourite' ){ if( NotificationObj.type=='favourite' ){
for(i=0;i<NotificationObj.status.emojis.length;i++) { for(i=0;i<NotificationObj.status.emojis.length;i++) {
@ -617,8 +628,10 @@ ${NotificationObj.status.account.display_name}
return $(html); return $(html);
} }
} else if ( NotificationObj.type === 'mention' ) { } else if ( NotificationObj.type === 'mention' ) {
const toot_author_link = getRelativeURL(NotificationObj.status.account.url, NotificationObj.status.account.id), var toot_author_link;
toot_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, NotificationObj.status.created_at)), if(NotificationObj.status.account.acct.indexOf("@") == -1) toot_author_link = "/@"+NotificationObj.status.account.acct+"@"+current_instance+"?mid="+NotificationObj.status.account.id;
else toot_author_link = "/@"+NotificationObj.status.account.acct+"?mid="+NotificationObj.status.account.id;
const toot_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, NotificationObj.status.created_at)),
toot_attr_datetime = getConversionedDate(null, NotificationObj.status.created_at); toot_attr_datetime = getConversionedDate(null, NotificationObj.status.created_at);
let alart_text= "", let alart_text= "",
article_option= "", article_option= "",
@ -781,7 +794,9 @@ return $(html);
} }
} }
function follows_template(AccountObj) { function follows_template(AccountObj) {
const profile_link = getRelativeURL(AccountObj.url,AccountObj.id); var profile_link;
if(AccountObj.acct.indexOf("@") == -1) profile_link = "/@"+AccountObj.acct+"@"+current_instance+"?mid="+AccountObj.id;
else profile_link = "/@"+AccountObj.acct+"?mid="+AccountObj.id;
if(AccountObj.display_name.length == 0) { if(AccountObj.display_name.length == 0) {
AccountObj.display_name = AccountObj.username; AccountObj.display_name = AccountObj.username;
} }
@ -825,8 +840,10 @@ return $(html);
} }
function status_template(status, class_options) { function status_template(status, class_options) {
if ( status.reblog === null ) { if ( status.reblog === null ) {
const status_account_link= getRelativeURL(status.account.url, status.account.id), var status_account_link;
status_datetime= getConversionedDate(null, status.created_at), if(status.account.acct.indexOf("@") == -1) status_account_link = "/@"+status.account.acct+"@"+current_instance+"?mid="+status.account.id;
else status_account_link = "/@"+status.account.acct+"?mid="+status.account.id;
const status_datetime= getConversionedDate(null, status.created_at),
status_attr_datetime = getConversionedDate(null, status.created_at); status_attr_datetime = getConversionedDate(null, status.created_at);
let alart_text= "", let alart_text= "",
article_option= "", article_option= "",
@ -1047,9 +1064,12 @@ html.find(".toot_article").append(media_views);
return html return html
} else { } else {
const status_datetime= getConversionedDate(null, status.reblog.created_at), const status_datetime= getConversionedDate(null, status.reblog.created_at),
status_attr_datetime = getConversionedDate(null, status.reblog.created_at), status_attr_datetime = getConversionedDate(null, status.reblog.created_at);
status_reblog_account_link = getRelativeURL(status.reblog.account.url, status.reblog.account.id), var status_reblog_account_link,status_account_link;
status_account_link= getRelativeURL(status.reblog.account.url, status.reblog.account.id); if(status.reblog.account.acct.indexOf("@") == -1) status_reblog_account_link = "/@"+status.reblog.account.acct+"@"+current_instance+"?mid="+status.reblog.account.id;
else status_reblog_account_link = "/@"+status.reblog.account.acct+"?mid="+status.reblog.account.id;
if(status.account.acct.indexOf("@") == -1) status_account_link = "/@"+status.account.acct+"@"+current_instance+"?mid="+status.account.id;
else status_account_link = "/@"+status.account.acct+"?mid="+status.account.id;
let alart_text= "", let alart_text= "",
article_option= "", article_option= "",
toot_reblogs_count= "", toot_reblogs_count= "",
@ -1290,8 +1310,10 @@ return $(html)
} }
function context_template(status, class_options) { function context_template(status, class_options) {
if ( status.reblog === null ) { if ( status.reblog === null ) {
const status_account_link= getRelativeURL(status.account.url, status.account.id), var status_account_link;
status_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, status.created_at)), if(status.account.acct.indexOf("@") == -1) status_account_link = "/@"+status.account.acct+"@"+current_instance+"?mid="+status.account.id;
else status_account_link = "/@"+status.account.acct+"?mid="+status.account.id;
const status_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, status.created_at)),
status_attr_datetime = getConversionedDate(null, status.created_at); status_attr_datetime = getConversionedDate(null, status.created_at);
let alart_text= "", let alart_text= "",
article_option= "", article_option= "",
@ -1433,9 +1455,12 @@ html.find(".toot_article").append(media_views);
return html return html
} else { } else {
const status_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, status.reblog.created_at)), const status_datetime= getRelativeDatetime(Date.now(), getConversionedDate(null, status.reblog.created_at)),
status_attr_datetime = getConversionedDate(null, status.reblog.created_at), status_attr_datetime = getConversionedDate(null, status.reblog.created_at);
status_reblog_account_link = getRelativeURL(status.reblog.account.url, status.reblog.account.id), var status_reblog_account_link,status_account_link;
status_account_link= getRelativeURL(status.account.url, status.account.id); if(status.reblog.account.acct.indexOf("@") == -1) status_reblog_account_link = "/@"+status.reblog.account.acct+"@"+current_instance+"?mid="+status.reblog.account.id;
else status_reblog_account_link = "/@"+status.reblog.account.acct+"?mid="+status.reblog.account.id;
if(status.account.acct.indexOf("@") == -1) status_account_link = "/@"+status.account.acct+"@"+current_instance+"?mid="+status.account.id;
else status_account_link = "/@"+status.account.acct+"?mid="+status.account.id;
let alart_text= "", let alart_text= "",
article_option= "", article_option= "",
toot_reblogs_count= "", toot_reblogs_count= "",

Binary file not shown.

View File

@ -1,13 +1,14 @@
# Niklas Poslovski <ni.pos@yandex.com>, 2018. #zanata # Niklas Poslovski <ni.pos@yandex.com>, 2018. #zanata
# Niklas Poslovski <ni.pos@yandex.com>, 2019. #zanata
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-30 09:53+0000\n" "POT-Creation-Date: 2019-01-19 16:33+0000\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2018-09-30 10:58+0000\n" "PO-Revision-Date: 2019-01-19 04:39+0000\n"
"Last-Translator: Niklas Poslovski <ni.pos@yandex.com>\n" "Last-Translator: Niklas Poslovski <ni.pos@yandex.com>\n"
"Language-Team: English (United States)\n" "Language-Team: English (United States)\n"
"Language: en\n" "Language: en\n"
@ -32,11 +33,14 @@ msgstr "Korean"
msgid "Language_pl_PL" msgid "Language_pl_PL"
msgstr "Polish" msgstr "Polish"
msgid "Language_gl_ES"
msgstr "Galician"
msgid "Language_pt_BR" msgid "Language_pt_BR"
msgstr "Portuguese (Brazil)" msgstr "Portuguese (Brazil)"
msgid "Language_gl_ES" msgid "Language_it_IT"
msgstr "Galician" msgstr "Italian"
msgid "Sensitive content" msgid "Sensitive content"
msgstr "Sensitive content" msgstr "Sensitive content"
@ -650,3 +654,201 @@ msgstr "Prompt"
msgid "Ok" msgid "Ok"
msgstr "Ok" msgstr "Ok"
msgid "Autocomplete enabled"
msgstr "Autocomplete enabled"
msgid "Autocomplete disabled"
msgstr "Autocomplete disabled"
msgid "Changed custom profile field"
msgstr "Changed custom profile field"
msgid "Notifications when tab is closed enabled"
msgstr "Notifications when tab is closed enabled"
msgid "Notifications when tab is closed disabled"
msgstr "Notifications when tab is closed disabled"
msgid "Toots of bots shown"
msgstr "Toots of bots shown"
msgid "Toots of bots hidden"
msgstr "Toots of bots hidden"
msgid "Filter created"
msgstr "Filter created"
msgid "Gif animations enabled"
msgstr "Gif animations enabled"
msgid "Gif animations disabled"
msgstr "Gif animations disabled"
msgid "Video player enabled"
msgstr "Video player enabled"
msgid "Video player disabled"
msgstr "Video player disabled"
msgid "Audio player enabled"
msgstr "Audio player enabled"
msgid "Audio player disabled"
msgstr "Audio player disabled"
msgid "PeerTube embeds enabled"
msgstr "PeerTube embeds enabled"
msgid "PeerTube embeds disabled"
msgstr "PeerTube embeds disabled"
msgid "YouPlay embeds enabled"
msgstr "YouPlay embeds enabled"
msgid "YouPlay embeds disabled"
msgstr "YouPlay embeds disabled"
msgid "Invidio.us embeds enabled"
msgstr "Invidio.us embeds enabled"
msgid "Invidio.us embeds disabled"
msgstr "Invidio.us embeds disabled"
msgid "Vimeo embeds enabled"
msgstr "Vimeo embeds enabled"
msgid "Vimeo embeds disabled"
msgstr "Vimeo embeds disabled"
msgid "Thread"
msgstr "Thread"
msgid "Never"
msgstr "Never"
msgid "Don't change"
msgstr "Don't change"
msgid "Filter updated"
msgstr "Filter updated"
msgid "Are you sure that you want to delete this filter?"
msgstr "Are you sure that you want to delete this filter?"
msgid "Your filter has been deleted"
msgstr "Your filter has been deleted"
msgid "Toot to"
msgstr "Toot to"
msgid "Administrated by"
msgstr "Administrated by"
msgid "Users"
msgstr "Users"
msgid "Connections"
msgstr "Connections"
msgid "Notifications when tab closed"
msgstr "Notifications when tab closed"
msgid "Filter settings"
msgstr "Filter settings"
msgid "Show toots of bots"
msgstr "Show toots of bots"
msgid "Add new filter"
msgstr "Add new filter"
msgid "Create a filter"
msgstr "Create a filter"
msgid "Word or phrase to filter"
msgstr "Word or phrase to filter"
msgid "Filter in the following timelines"
msgstr "Filter in the following timelines"
msgid "Expires in"
msgstr "Expires in"
msgid "Autocomplete in compose field"
msgstr "Autocomplete in compose field"
msgid "Media settings"
msgstr "Media settings"
msgid "Play animated GIFs"
msgstr "Play animated GIFs"
msgid "Enable video player"
msgstr "Enable video player"
msgid "Enable audio player"
msgstr "Enable audio player"
msgid "Embed PeerTube videos"
msgstr "Embed PeerTube videos"
msgid "Embed YouTube using YouPlay"
msgstr "Embed YouTube using YouPlay"
msgid "Embed YouTube using Invidio.us"
msgstr "Embed YouTube using Invidio.us"
msgid "Embed Vimeo using YouPlay"
msgstr "Embed Vimeo using YouPlay"
msgid "Custom profile fields"
msgstr "Custom profile fields"
msgid "Name"
msgstr "Name"
msgid "Value"
msgstr "Value"
msgid ""
"To verify that the links in your custom fields really belong to you, you can "
"add the link below to your website. The link text can be changed to whatever "
"you want."
msgstr ""
"To verify that the links in your custom fields really belong to you, you can "
"add the link below to your website. The link text can be changed to whatever "
"you want."
msgid "Message"
msgstr "Message"
msgid "Filter"
msgstr "Filter"
msgid "minutes"
msgstr "minutes"
msgid "hour"
msgstr "hour"
msgid "hours"
msgstr "hours"
msgid "day"
msgstr "day"
msgid "week"
msgstr "week"
msgid "Filter posts irreversible"
msgstr "Filter posts irreversible"
msgid "Whole word"
msgstr "Whole word"
msgid "FILTERS"
msgstr "FILTERS"
msgid "MEDIA"
msgstr "MEDIA"

Binary file not shown.

View File

@ -1,13 +1,14 @@
# Niklas Poslovski <ni.pos@yandex.com>, 2018. #zanata # Niklas Poslovski <ni.pos@yandex.com>, 2018. #zanata
# Niklas Poslovski <ni.pos@yandex.com>, 2019. #zanata
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-30 09:53+0000\n" "POT-Creation-Date: 2019-01-19 16:33+0000\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2018-12-13 02:38+0000\n" "PO-Revision-Date: 2019-01-31 04:41+0000\n"
"Last-Translator: Xosé M. <correo@xmgz.eu>\n" "Last-Translator: Xosé M. <correo@xmgz.eu>\n"
"Language-Team: Galician\n" "Language-Team: Galician\n"
"Language: gl\n" "Language: gl\n"
@ -32,11 +33,14 @@ msgstr "Korean"
msgid "Language_pl_PL" msgid "Language_pl_PL"
msgstr "Polish" msgstr "Polish"
msgid "Language_gl_ES"
msgstr "Galician"
msgid "Language_pt_BR" msgid "Language_pt_BR"
msgstr "Portuguese (Brazil)" msgstr "Portuguese (Brazil)"
msgid "Language_gl_ES" msgid "Language_it_IT"
msgstr "Galician" msgstr "Italian"
msgid "Sensitive content" msgid "Sensitive content"
msgstr "Contido sensible" msgstr "Contido sensible"
@ -649,3 +653,201 @@ msgstr "Avisar"
msgid "Ok" msgid "Ok"
msgstr "Ok" msgstr "Ok"
msgid "Autocomplete enabled"
msgstr "Autocompletado activado"
msgid "Autocomplete disabled"
msgstr "Autocompletado desactivado"
msgid "Changed custom profile field"
msgstr "Cambiado o campo de perfil personalizado"
msgid "Notifications when tab is closed enabled"
msgstr "Notificacións activadas cando a lapela está pechada"
msgid "Notifications when tab is closed disabled"
msgstr "Notificacións desactivadas cando a lapela está pechada"
msgid "Toots of bots shown"
msgstr "Móstranse os toots dos bots"
msgid "Toots of bots hidden"
msgstr "Toots dos bots ocultos"
msgid "Filter created"
msgstr "Filtro creado"
msgid "Gif animations enabled"
msgstr "Animacións Gif activadas"
msgid "Gif animations disabled"
msgstr "Animacións Gif desactivadas"
msgid "Video player enabled"
msgstr "Reprodutor de vídeo activado"
msgid "Video player disabled"
msgstr "Reprodutor de vídeo desactivado"
msgid "Audio player enabled"
msgstr "Reprodutor de audio activado"
msgid "Audio player disabled"
msgstr "Reprodutor de audio desactivado"
msgid "PeerTube embeds enabled"
msgstr "Incrustados de Peertube activados"
msgid "PeerTube embeds disabled"
msgstr "Incrustados de Peertube desactivados"
msgid "YouPlay embeds enabled"
msgstr "Incrustados de YouPlay activados"
msgid "YouPlay embeds disabled"
msgstr "Incrustados de YouPlay desactivados"
msgid "Invidio.us embeds enabled"
msgstr "Incrustados de Invidio.us activados"
msgid "Invidio.us embeds disabled"
msgstr "Incrustados de Invidio.us desactivados"
msgid "Vimeo embeds enabled"
msgstr "Incrustados de Vimeo activados"
msgid "Vimeo embeds disabled"
msgstr "Incrustados de Vimeo desactivados"
msgid "Thread"
msgstr "Conversa"
msgid "Never"
msgstr "Nunca"
msgid "Don't change"
msgstr "Non cambiar"
msgid "Filter updated"
msgstr "Filtro actualizado"
msgid "Are you sure that you want to delete this filter?"
msgstr "Está seguro de querer eliminar este filtro?"
msgid "Your filter has been deleted"
msgstr "Eliminouse o filtro"
msgid "Toot to"
msgstr "Toot a"
msgid "Administrated by"
msgstr "Administrada por"
msgid "Users"
msgstr "Usuarias"
msgid "Connections"
msgstr "Conexións"
msgid "Notifications when tab closed"
msgstr "Notificacións coa lapela pechada"
msgid "Filter settings"
msgstr "Axustes do filtro"
msgid "Show toots of bots"
msgstr "Mostrar toots de bots"
msgid "Add new filter"
msgstr "Engadir novo filtro"
msgid "Create a filter"
msgstr "Crear un filtro"
msgid "Word or phrase to filter"
msgstr "Palabra ou frase a filtrar"
msgid "Filter in the following timelines"
msgstr "Filtrar nas seguintes liñas temporais"
msgid "Expires in"
msgstr "Caduca en"
msgid "Autocomplete in compose field"
msgstr "Autocompletado en cadro de edición"
msgid "Media settings"
msgstr "Axustes dos medios"
msgid "Play animated GIFs"
msgstr "Reproducir GIFs animados"
msgid "Enable video player"
msgstr "Activar reprodutor de vídeo"
msgid "Enable audio player"
msgstr "Activar reprodutor de audio"
msgid "Embed PeerTube videos"
msgstr "Incrustar vídeos PeerTube"
msgid "Embed YouTube using YouPlay"
msgstr "Incrustar YouTube utilizando YouPlay"
msgid "Embed YouTube using Invidio.us"
msgstr "Incrustar YouTube utilizando Invidio.us"
msgid "Embed Vimeo using YouPlay"
msgstr "Incrustar Vimeo utilizando YouPlay"
msgid "Custom profile fields"
msgstr "Campos de perfil personalizados"
msgid "Name"
msgstr "Nome"
msgid "Value"
msgstr "Valor"
msgid ""
"To verify that the links in your custom fields really belong to you, you can "
"add the link below to your website. The link text can be changed to whatever "
"you want."
msgstr ""
"Para verificar que as ligazóns dos campos personalizados realmente lle "
"pertencen, pode engadir a ligazón inferior ao seu sitio web. O texto da "
"ligazón pode cambialo como vostede desexe."
msgid "Message"
msgstr "Mensaxe"
msgid "Filter"
msgstr "Filtro"
msgid "minutes"
msgstr "minutos"
msgid "hour"
msgstr "hora"
msgid "hours"
msgstr "horas"
msgid "day"
msgstr "día"
msgid "week"
msgstr "semana"
msgid "Filter posts irreversible"
msgstr "Filtrado de publicacións non reversible"
msgid "Whole word"
msgstr "Palabra completa"
msgid "FILTERS"
msgstr "FILTROS"
msgid "MEDIA"
msgstr "MEDIOS"

Binary file not shown.

View File

@ -1,14 +1,13 @@
# Sylke Vicious <silkevicious@tuta.io>, 2018. #zanata
# Niklas Poslovski <ni.pos@yandex.com>, 2019. #zanata # Niklas Poslovski <ni.pos@yandex.com>, 2019. #zanata
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-09-30 09:53+0000\n" "POT-Creation-Date: 2019-01-19 16:33+0000\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2019-01-13 02:37+0000\n" "PO-Revision-Date: 2019-01-31 04:45+0000\n"
"Last-Translator: Sylke Vicious <silkevicious@tuta.io>\n" "Last-Translator: Sylke Vicious <silkevicious@tuta.io>\n"
"Language-Team: Italian\n" "Language-Team: Italian\n"
"Language: it\n" "Language: it\n"
@ -19,25 +18,28 @@ msgid "Language"
msgstr "Lingua" msgstr "Lingua"
msgid "Language_en_US" msgid "Language_en_US"
msgstr "English" msgstr "Inglese"
msgid "Language_de_DE" msgid "Language_de_DE"
msgstr "German" msgstr "Tedesco"
msgid "Language_ja_JP" msgid "Language_ja_JP"
msgstr "Japanese" msgstr "Giapponese"
msgid "Language_ko_KR" msgid "Language_ko_KR"
msgstr "Korean" msgstr "Coreano"
msgid "Language_pl_PL" msgid "Language_pl_PL"
msgstr "Polish" msgstr "Polacco"
msgid "Language_pt_BR"
msgstr "Portuguese (Brazil)"
msgid "Language_gl_ES" msgid "Language_gl_ES"
msgstr "Galician" msgstr "Galiziano"
msgid "Language_pt_BR"
msgstr "Portoghese (Brasile)"
msgid "Language_it_IT"
msgstr "Italiano"
msgid "Sensitive content" msgid "Sensitive content"
msgstr "Contenuto sensibile" msgstr "Contenuto sensibile"
@ -650,3 +652,201 @@ msgstr "Chiedi"
msgid "Ok" msgid "Ok"
msgstr "Ok" msgstr "Ok"
msgid "Autocomplete enabled"
msgstr "Autocompletamento abilitato"
msgid "Autocomplete disabled"
msgstr "Autocompletamento disabilitato"
msgid "Changed custom profile field"
msgstr "Campi profilo personalizzati modificati"
msgid "Notifications when tab is closed enabled"
msgstr "Notifiche quando la tab è chiusa abilitate"
msgid "Notifications when tab is closed disabled"
msgstr "Notifiche quando la tab è chiusa disabilitate"
msgid "Toots of bots shown"
msgstr "Toot dei bot mostrati"
msgid "Toots of bots hidden"
msgstr "Toot dei bot nascosti"
msgid "Filter created"
msgstr "Filtri creati"
msgid "Gif animations enabled"
msgstr "Animazioni gif abilitate"
msgid "Gif animations disabled"
msgstr "Animazioni gif disabilitate"
msgid "Video player enabled"
msgstr "Riproduttore video abilitato"
msgid "Video player disabled"
msgstr "Riproduttore video disabilitato"
msgid "Audio player enabled"
msgstr "Riproduttore audio abilitato"
msgid "Audio player disabled"
msgstr "Riproduttore audio disabilitato"
msgid "PeerTube embeds enabled"
msgstr "Contenuti incorporati da PeerTube abilitati"
msgid "PeerTube embeds disabled"
msgstr "Contenuti incorporati da PeerTube disabilitati"
msgid "YouPlay embeds enabled"
msgstr "Contenuti incorporati da YouPlay abilitati"
msgid "YouPlay embeds disabled"
msgstr "Contenuti incorporati da YouPlay disabilitati"
msgid "Invidio.us embeds enabled"
msgstr "Contenuti incorporati da Invidio.us abilitati"
msgid "Invidio.us embeds disabled"
msgstr "Contenuti incorporati da Invidio.us disabilitati"
msgid "Vimeo embeds enabled"
msgstr "Contenuti incorporati da Vimeo abilitati"
msgid "Vimeo embeds disabled"
msgstr "Contenuti incorporati da Vimeo disabilitati"
msgid "Thread"
msgstr "Conversazione"
msgid "Never"
msgstr "Mai"
msgid "Don't change"
msgstr "Non cambiare"
msgid "Filter updated"
msgstr "Filtro aggiornato"
msgid "Are you sure that you want to delete this filter?"
msgstr "Sei sicuro di vole eliminare questo filtro?"
msgid "Your filter has been deleted"
msgstr "Il tuo filtro è stato eliminato"
msgid "Toot to"
msgstr "Toot su"
msgid "Administrated by"
msgstr "Amministrato da"
msgid "Users"
msgstr "Utenti"
msgid "Connections"
msgstr "Connessioni"
msgid "Notifications when tab closed"
msgstr "Notifiche quando la tab è chiusa"
msgid "Filter settings"
msgstr "Impostazioni dei filtri"
msgid "Show toots of bots"
msgstr "Mostra toot dei bot"
msgid "Add new filter"
msgstr "Aggiungi nuovo filtro"
msgid "Create a filter"
msgstr "Crea un filtro"
msgid "Word or phrase to filter"
msgstr "Parola o frase da filtrare"
msgid "Filter in the following timelines"
msgstr "Filtra nelle timeline seguenti"
msgid "Expires in"
msgstr "Scade tra"
msgid "Autocomplete in compose field"
msgstr "Autocompletamento nel campo di composizione"
msgid "Media settings"
msgstr "Impostazioni dei media"
msgid "Play animated GIFs"
msgstr "Riproduci animazioni GIF"
msgid "Enable video player"
msgstr "Abilita riproduttore video"
msgid "Enable audio player"
msgstr "Abilita riproduttore audio"
msgid "Embed PeerTube videos"
msgstr "Incorpora video di PeerTube"
msgid "Embed YouTube using YouPlay"
msgstr "Incorpora video di YouTube utilizzando YouPlay"
msgid "Embed YouTube using Invidio.us"
msgstr "Incorpora video di YouTube utilizzando Invidio.us"
msgid "Embed Vimeo using YouPlay"
msgstr "Incorpora video di Vimeo utilizzando YouPlay"
msgid "Custom profile fields"
msgstr "Campi profilo personalizzati"
msgid "Name"
msgstr "Nome"
msgid "Value"
msgstr "Valore"
msgid ""
"To verify that the links in your custom fields really belong to you, you can "
"add the link below to your website. The link text can be changed to whatever "
"you want."
msgstr ""
"Per verificare che i collegamenti nei campi personalizzati siano veramente "
"in tuo possesso, puoi aggiungere il link sottostante al tuo sito web. Il "
"testo del link può essere cambiato a tuo piacimento."
msgid "Message"
msgstr "Messaggio"
msgid "Filter"
msgstr "Filtro"
msgid "minutes"
msgstr "minuti"
msgid "hour"
msgstr "ora"
msgid "hours"
msgstr "ore"
msgid "day"
msgstr "giorno"
msgid "week"
msgstr "settimana"
msgid "Filter posts irreversible"
msgstr "Filtra post irreversibilmente"
msgid "Whole word"
msgstr "Parola intera"
msgid "FILTERS"
msgstr "FILTRI"
msgid "MEDIA"
msgstr "MEDIA"

View File

@ -61,31 +61,31 @@
</header> </header>
<div class="timeline"> <div class="timeline">
<div style="float:left;width:50%;text-align:right"> <div style="float:left;width:50%;text-align:right">
<input name="field_0_name" type="text" class="disallow_enter textfield setting_field" id="setting_field_0_name" placeholder="<?=('Name')?>"> <input name="field_0_name" type="text" class="disallow_enter textfield setting_field" id="setting_field_0_name" placeholder="<?=_('Name')?>">
</div> </div>
<div class="field_0_wrap" style="float:left;width:50%"> <div class="field_0_wrap" style="float:left;width:50%">
<input name="field_0_value" type="text" class="disallow_enter textfield setting_field" id="setting_field_0_value" placeholder="<?=('Value')?>"> <input name="field_0_value" type="text" class="disallow_enter textfield setting_field" id="setting_field_0_value" placeholder="<?=_('Value')?>">
</div> </div>
<div style="float:left;width:50%;text-align:right"> <div style="float:left;width:50%;text-align:right">
<input name="field_1_name" type="text" class="disallow_enter textfield setting_field" id="setting_field_1_name" placeholder="<?=('Name')?>"> <input name="field_1_name" type="text" class="disallow_enter textfield setting_field" id="setting_field_1_name" placeholder="<?=_('Name')?>">
</div> </div>
<div class="field_1_wrap" style="float:left;width:50%"> <div class="field_1_wrap" style="float:left;width:50%">
<input name="field_1_value" type="text" class="disallow_enter textfield setting_field" id="setting_field_1_value" placeholder="<?=('Value')?>"> <input name="field_1_value" type="text" class="disallow_enter textfield setting_field" id="setting_field_1_value" placeholder="<?=_('Value')?>">
</div> </div>
<div style="float:left;width:50%;text-align:right"> <div style="float:left;width:50%;text-align:right">
<input name="field_2_name" type="text" class="disallow_enter textfield setting_field" id="setting_field_2_name" placeholder="<?=('Name')?>"> <input name="field_2_name" type="text" class="disallow_enter textfield setting_field" id="setting_field_2_name" placeholder="<?=_('Name')?>">
</div> </div>
<div class="field_2_wrap" style="float:left;width:50%"> <div class="field_2_wrap" style="float:left;width:50%">
<input name="field_2_value" type="text" class="disallow_enter textfield setting_field" id="setting_field_2_value" placeholder="<?=('Value')?>"> <input name="field_2_value" type="text" class="disallow_enter textfield setting_field" id="setting_field_2_value" placeholder="<?=_('Value')?>">
</div> </div>
<div style="float:left;width:50%;text-align:right"> <div style="float:left;width:50%;text-align:right">
<input name="field_3_name" type="text" class="disallow_enter textfield setting_field" id="setting_field_3_name" placeholder="<?=('Name')?>"> <input name="field_3_name" type="text" class="disallow_enter textfield setting_field" id="setting_field_3_name" placeholder="<?=_('Name')?>">
</div> </div>
<div class="field_3_wrap" style="float:left;width:50%"> <div class="field_3_wrap" style="float:left;width:50%">
<input name="field_3_value" type="text" class="disallow_enter textfield setting_field" id="setting_field_3_value" placeholder="<?=('Value')?>"> <input name="field_3_value" type="text" class="disallow_enter textfield setting_field" id="setting_field_3_value" placeholder="<?=_('Value')?>">
</div> </div>
<div style="width:75%;margin:auto"> <div style="width:75%;margin:auto">
<p style="margin-bottom:5px">To verify that the links in your custom fields really belong to you, you can add the link below to your website. The link text can be changed to whatever you want.</p> <p style="margin-bottom:5px"><?=_('To verify that the links in your custom fields really belong to you, you can add the link below to your website. The link text can be changed to whatever you want.')?></p>
<input class="copy_link_input" id="verifylink" type="text" value="" readonly> <input class="copy_link_input" id="verifylink" type="text" value="" readonly>
</div> </div>
<span style="visibility:hidden">-</span> <span style="visibility:hidden">-</span>

View File

@ -80,7 +80,7 @@ $("#js-profile_nav_followers > a").attr('href', location.pathname+'/followers'+l
$("#js-profile_nav_favourites > a").attr('href', location.pathname+'/favourites'+location.search); $("#js-profile_nav_favourites > a").attr('href', location.pathname+'/favourites'+location.search);
$(function() { $(function() {
<?php if(isset($_GET['mid'])) { ?> <?php if(isset($_GET['mid'])) { ?>
const account_id = <?= htmlspecialchars((string)filter_input(INPUT_GET,'mid'),ENT_QUOTES) ?>; const account_id = "<?= htmlspecialchars((string)filter_input(INPUT_GET,'mid'),ENT_QUOTES) ?>";
api.get('accounts/'+account_id, function(userprofile) { api.get('accounts/'+account_id, function(userprofile) {
if(userprofile !== null) { if(userprofile !== null) {
<?php } else if(isset($_GET['user'])) { <?php } else if(isset($_GET['user'])) {

View File

@ -62,7 +62,7 @@ $("#js-profile_nav_followers > a").attr('href', 'followers'+location.search);
$("#js-profile_nav_favourites > a").attr('href', 'favourites'+location.search); $("#js-profile_nav_favourites > a").attr('href', 'favourites'+location.search);
<?php if (isset($_GET['mid'])): ?> <?php if (isset($_GET['mid'])): ?>
$(function() { $(function() {
const account_id = <?php echo $_GET['mid']; ?>; const account_id = "<?php echo $_GET['mid']; ?>";
api.get('accounts/'+account_id, function(AccountObj) { api.get('accounts/'+account_id, function(AccountObj) {
if ( AccountObj !== null ) { if ( AccountObj !== null ) {
setAccount(AccountObj); setAccount(AccountObj);

View File

@ -48,7 +48,7 @@ $("#js-profile_nav_followers > a").attr('href', 'followers'+location.search);
$("#js-profile_nav_favourites > a").attr('href','favourites'+location.search); $("#js-profile_nav_favourites > a").attr('href','favourites'+location.search);
<?php if (isset($_GET['mid'])): ?> <?php if (isset($_GET['mid'])): ?>
$(function() { $(function() {
const account_id = <?= htmlspecialchars((string)filter_input(INPUT_GET, 'mid'), ENT_QUOTES) ?>; const account_id = "<?= htmlspecialchars((string)filter_input(INPUT_GET, 'mid'), ENT_QUOTES) ?>";
api.get('accounts/'+account_id, function(AccountObj) { api.get('accounts/'+account_id, function(AccountObj) {
if ( AccountObj !== null ) { if ( AccountObj !== null ) {
setAccount(AccountObj); setAccount(AccountObj);

View File

@ -48,7 +48,7 @@ $("#js-profile_nav_followers > a").attr('href', 'followers'+location.search);
$("#js-profile_nav_favourites > a").attr('href','favourites'+location.search); $("#js-profile_nav_favourites > a").attr('href','favourites'+location.search);
<?php if (isset($_GET['mid'])): ?> <?php if (isset($_GET['mid'])): ?>
$(function() { $(function() {
const account_id = <?= htmlspecialchars((string)filter_input(INPUT_GET, 'mid'), ENT_QUOTES) ?>; const account_id = "<?= htmlspecialchars((string)filter_input(INPUT_GET, 'mid'), ENT_QUOTES) ?>";
api.get('accounts/'+account_id, function(AccountObj) { api.get('accounts/'+account_id, function(AccountObj) {
if ( AccountObj !== null ) { if ( AccountObj !== null ) {
setAccount(AccountObj); setAccount(AccountObj);

View File

@ -79,7 +79,7 @@ $("#js-profile_nav_followers > a").attr('href', './followers'+location.search);
$("#js-profile_nav_favourites > a").attr('href', './favourites'+location.search); $("#js-profile_nav_favourites > a").attr('href', './favourites'+location.search);
<?php if (isset($_GET['mid'])): ?> <?php if (isset($_GET['mid'])): ?>
$(function() { $(function() {
const account_id = <?= htmlspecialchars((string)filter_input(INPUT_GET, 'mid'), ENT_QUOTES) ?>; const account_id = "<?= htmlspecialchars((string)filter_input(INPUT_GET, 'mid'), ENT_QUOTES) ?>";
api.get('accounts/'+account_id, function(AccountObj) { api.get('accounts/'+account_id, function(AccountObj) {
if ( AccountObj !== null ) { if ( AccountObj !== null ) {
setAccount(AccountObj); setAccount(AccountObj);

View File

@ -79,7 +79,7 @@ $("#js-profile_nav_followers > a").attr('href', './followers'+location.search);
$("#js-profile_nav_favourites > a").attr('href', './favourites'+location.search); $("#js-profile_nav_favourites > a").attr('href', './favourites'+location.search);
<?php if (isset($_GET['mid'])): ?> <?php if (isset($_GET['mid'])): ?>
$(function() { $(function() {
const account_id = <?= htmlspecialchars((string)filter_input(INPUT_GET, 'mid'), ENT_QUOTES) ?>; const account_id = "<?= htmlspecialchars((string)filter_input(INPUT_GET, 'mid'), ENT_QUOTES) ?>";
api.get('accounts/'+account_id, function(AccountObj) { api.get('accounts/'+account_id, function(AccountObj) {
if ( AccountObj !== null ) { if ( AccountObj !== null ) {
setAccount(AccountObj); setAccount(AccountObj);

View File

@ -1 +1 @@
2.2.0 2.2.1