mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(app): treat official invite and gift links as external when self-hosted (#1650)
This commit is contained in:
1 parent
0be2a7fed9
commit
5f9e4db230
2 files changed
+6
No files matched your search
@@ -14,6 +14,9 @@ const OFFICIAL_GIFT_URL_BASES = Object.freeze([
|
||||
const GIFT_CONFIG: CodeLinkUtils.CodeLinkConfig = {
|
||||
path: 'gift',
|
||||
get urlBases() {
|
||||
if (RuntimeConfig.isSelfHosted()) {
|
||||
return [RuntimeConfig.giftUrlBase];
|
||||
}
|
||||
return [RuntimeConfig.giftUrlBase, ...OFFICIAL_GIFT_URL_BASES];
|
||||
},
|
||||
};
|
||||
|
||||
@@ -22,6 +22,9 @@ const OFFICIAL_INVITE_URL_BASES = Object.freeze([
|
||||
const INVITE_CONFIG: CodeLinkUtils.CodeLinkConfig = {
|
||||
path: 'invite',
|
||||
get urlBases() {
|
||||
if (RuntimeConfig.isSelfHosted()) {
|
||||
return [RuntimeConfig.inviteUrlBase];
|
||||
}
|
||||
return [RuntimeConfig.inviteUrlBase, ...OFFICIAL_INVITE_URL_BASES];
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user