You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix a couple of long-standing bugs in job board validation logic (#429)
* Fix job post parsing when tags + description are on the same line
* Fix a source of random unhelpful messages in private threads
* Fix busted validation rules
* Apparently fix edited post detection
* Remove posts that are edited out of compliance with formatting rules
* Simplify thread/channel detection logic
This caused a heccin big bug on first merge unforunately. It was too complex, too difficult to understand, too easy to introduce weirdness. I tested this pretty comprehensively, testing message send in channel/thread/private thread, as well as editing messages in all those contexts.
* Add emoji tests, tune the sensitivity down
"👉 stuff: some more details afterwards and whatever shenanigans\n👉 stuff: some more details afterwards and whatever shenanigans\n👉 stuff: some more details afterwards and whatever shenanigans\n👉 stuff: some more details afterwards and whatever shenanigans\n👉 stuff: some more details afterwards and whatever shenanigans\n",
"for ✨ some role and stuff\nDM ✨ me ✨ to ✨ apply ✨",
29
+
"for some role and stuff\nDM me to apply ✨✨✨✨✨✨",
30
+
"👉 stuff: some more ✨✨ details afterwards and whatever shenanigans\n👉 stuff: some more ✨✨ details afterwards and whatever shenanigans\n👉 stuff: some more ✨✨ details afterwards and whatever shenanigans\n👉 stuff: some more ✨✨ details afterwards and whatever shenanigans\n👉 stuff: some more ✨✨ details afterwards and whatever shenanigans\n",
`Your message was removed after you edited it so that it no longer complies with our formatting rules. ${e.recentEdit ? "Please re-post." : ""}`,
21
25
[POST_FAILURE_REASONS.missingType]:
22
26
"Your post does not include our required `[HIRING]` or `[FOR HIRE]` tag. Make sure the first line of your post includes `[HIRING]` if you’re looking to pay someone for their work, and `[FOR HIRE]` if you’re offering your services.",
`You’re posting too frequently. You last posted ${e.lastSent} days ago, please wait at least 7 days.`,
35
39
[POST_FAILURE_REASONS.replyOrMention]:
36
-
"Messages in this channel may not be replies or include @-mentions of users, to ensure the channel isn’t being used to discuss postings.",
40
+
"Messages in this channel may not be replies or include @-mentions of users due to a history of posters incorrectly attempting to 'apply' by replying within a thread or reply.",
0 commit comments