mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 22:17:14 +03:00
update matrix link
This commit is contained in:
@@ -298,7 +298,7 @@ async function checkUserActiveWarning(userID: string): Promise<CheckResult> {
|
|||||||
if (warnings?.length >= config.maxNumberOfActiveWarnings) {
|
if (warnings?.length >= config.maxNumberOfActiveWarnings) {
|
||||||
const defaultMessage = "Submission rejected due to a warning from a moderator. This means that we noticed you were making some common mistakes"
|
const defaultMessage = "Submission rejected due to a warning from a moderator. This means that we noticed you were making some common mistakes"
|
||||||
+ " that are not malicious, and we just want to clarify the rules. "
|
+ " that are not malicious, and we just want to clarify the rules. "
|
||||||
+ "Could you please send a message in discord.gg/SponsorBlock or matrix.to/#/+sponsor:ajay.app so we can further help you? "
|
+ "Could you please send a message in discord.gg/SponsorBlock or matrix.to/#/#sponsor:ajay.app so we can further help you? "
|
||||||
+ `Your userID is ${userID}.`;
|
+ `Your userID is ${userID}.`;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@@ -375,7 +375,7 @@ async function checkEachSegmentValid(userID: string, videoID: VideoID
|
|||||||
`${lockedCategoryList[lockIndex].reason?.length !== 0 ? `\nLock reason: '${lockedCategoryList[lockIndex].reason}'` : ""}\n` +
|
`${lockedCategoryList[lockIndex].reason?.length !== 0 ? `\nLock reason: '${lockedCategoryList[lockIndex].reason}'` : ""}\n` +
|
||||||
`${(segments[i].category === "sponsor" ? "\nMaybe the segment you are submitting is a different category that you have not enabled and is not a sponsor. " +
|
`${(segments[i].category === "sponsor" ? "\nMaybe the segment you are submitting is a different category that you have not enabled and is not a sponsor. " +
|
||||||
"Categories that aren't sponsor, such as self-promotion can be enabled in the options.\n" : "")}` +
|
"Categories that aren't sponsor, such as self-promotion can be enabled in the options.\n" : "")}` +
|
||||||
`\nIf you believe this is incorrect, please contact someone on discord.gg/SponsorBlock or matrix.to/#/+sponsor:ajay.app`
|
`\nIf you believe this is incorrect, please contact someone on discord.gg/SponsorBlock or matrix.to/#/#sponsor:ajay.app`
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -612,7 +612,7 @@ describe("postSkipSegments", () => {
|
|||||||
const userID = "09dee632bfbb1acc9fda3169cc14b46e459b45cee4f4449be305590e612b5eb7";
|
const userID = "09dee632bfbb1acc9fda3169cc14b46e459b45cee4f4449be305590e612b5eb7";
|
||||||
const expected = "Submission rejected due to a warning from a moderator. This means that we noticed you were making some common mistakes"
|
const expected = "Submission rejected due to a warning from a moderator. This means that we noticed you were making some common mistakes"
|
||||||
+ " that are not malicious, and we just want to clarify the rules. "
|
+ " that are not malicious, and we just want to clarify the rules. "
|
||||||
+ "Could you please send a message in discord.gg/SponsorBlock or matrix.to/#/+sponsor:ajay.app so we can further help you? "
|
+ "Could you please send a message in discord.gg/SponsorBlock or matrix.to/#/#sponsor:ajay.app so we can further help you? "
|
||||||
+ `Your userID is ${userID}.\n\nWarning reason: '${reason}'`;
|
+ `Your userID is ${userID}.\n\nWarning reason: '${reason}'`;
|
||||||
|
|
||||||
assert.strictEqual(errorMessage, expected);
|
assert.strictEqual(errorMessage, expected);
|
||||||
|
|||||||
Reference in New Issue
Block a user