update domains
This commit is contained in:
parent
214e12ab25
commit
844ae97a82
8 changed files with 12 additions and 12 deletions
|
|
@ -109,11 +109,11 @@ async function sendDiscordAuditLog({
|
|||
const webhookClient = new WebhookClient({ url: webhookUrl })
|
||||
|
||||
const editorMiiUrl = editorPid
|
||||
? `https://mii.spfn.net/${editorPid}/main.png`
|
||||
? `https://mii.spbr.net/${editorPid}/main.png`
|
||||
: 'https://git.spbr.net/spacebar/mod-portal-v2/raw/branch/main/public/img_unknown_MiiIcon.png'
|
||||
|
||||
const targetMiiUrl = targetPid
|
||||
? `https://mii.spfn.net/${targetPid}/main.png`
|
||||
? `https://mii.spbr.net/${targetPid}/main.png`
|
||||
: 'https://git.spbr.net/spacebar/mod-portal-v2/raw/branch/main/public/img_unknown_MiiIcon.png'
|
||||
|
||||
const fields = changes.map((c, index) => {
|
||||
|
|
@ -147,7 +147,7 @@ async function sendDiscordAuditLog({
|
|||
|
||||
let safeOrigin = panelBaseUrl
|
||||
if (!safeOrigin || safeOrigin === 'http://' || safeOrigin === 'https://') {
|
||||
safeOrigin = 'https://admin.spfn.net'
|
||||
safeOrigin = 'https://mod.spbr.net'
|
||||
} else if (!safeOrigin.startsWith('http://') && !safeOrigin.startsWith('https://')) {
|
||||
safeOrigin = `http://${safeOrigin}`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue