mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 09:13:21 +00:00
Merge branch 'master' into fix/discord-empty-service-url
This commit is contained in:
@@ -172,9 +172,9 @@ class DomainExpiry extends BeanModel {
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {(Date|null)} Expiry date from RDAP
|
||||
* @returns {Promise<(Date|null)>} Expiry date from RDAP
|
||||
*/
|
||||
getExpiryDate() {
|
||||
async getExpiryDate() {
|
||||
return getRdapDomainExpiryDate(this.domain);
|
||||
}
|
||||
|
||||
|
||||
@@ -132,6 +132,9 @@ class StatusPage extends BeanModel {
|
||||
let ogDescription = $("<meta property=\"og:description\" content=\"\" />").attr("content", description155);
|
||||
head.append(ogDescription);
|
||||
|
||||
let ogType = $("<meta property=\"og:type\" content=\"website\" />");
|
||||
head.append(ogType);
|
||||
|
||||
// Preload data
|
||||
// Add jsesc, fix https://github.com/louislam/uptime-kuma/issues/2186
|
||||
const escapedJSONObject = jsesc(await StatusPage.getStatusPageData(statusPage), {
|
||||
|
||||
Reference in New Issue
Block a user