Merge branch 'master' into upgrade-deps

This commit is contained in:
Keyan 2024-10-15 11:34:55 -05:00 committed by GitHub
commit 7d139faca1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 16 additions and 2 deletions

View File

@ -1024,6 +1024,20 @@ export default {
return user.streak
},
gunStreak: async (user, args, { models }) => {
if (user.hideCowboyHat) {
return null
}
return user.gunStreak
},
horseStreak: async (user, args, { models }) => {
if (user.hideCowboyHat) {
return null
}
return user.horseStreak
},
maxStreak: async (user, args, { models }) => {
if (user.hideCowboyHat) {
return null

View File

@ -33,7 +33,7 @@ const rehypeSNStyled = () => rehypeSN({
}]
})
const remarkPlugins = [gfm, remarkMath]
const remarkPlugins = [gfm, [remarkMath, { singleDollarTextMath: false }]]
const rehypePlugins = [rehypeSNStyled, rehypeMathjax]
export function SearchText ({ text }) {

View File

@ -370,7 +370,7 @@ export default function Settings ({ ssrData }) {
groupClassName='mb-0'
/>
<Checkbox
label={<>hide my cowboy hat</>}
label={<>hide my cowboy essentials (e.g. cowboy hat)</>}
name='hideCowboyHat'
groupClassName='mb-0'
/>