diff --git a/components/Account.vue b/components/Account.vue index 89d371b46..85f48b7c7 100644 --- a/components/Account.vue +++ b/components/Account.vue @@ -59,7 +59,7 @@
-
-
+
+
+
- * If you have a problem with us saying ACAB, - please learn its history, - it originated in the 1920s in the UK and doesn't have to have anything to do with your US-centric view of the world. - It feels really sad to see it taken over by US-centric perspective and be gatekept from using it. - The US isn't the only country in the world, connotations of words and phrases might differ vastly. - We're predominantly based in Poland (although we do have members abroad too, including POC) - where queers regularly suffer at the hands of the cops. - The police here don't need any Black people around to be bastards towards the minorities. - Please be assured that we're wholeheartedly supporting the fight for racial equality everywhere in the world. - Our use of ACAB isn't meant to compare our experiences in any way or to diminish the struggle od BIPOC. - The only people it's supposed to target are the cops abusing their power for whatever reason. -
+That's why we're inclusive. Our team of volunteers creates (among many other things we do) a tool to create a card where you can present your pronouns, names, identities and more. diff --git a/locale/en/config.suml b/locale/en/config.suml index add533e17..0ca8bfa51 100644 --- a/locale/en/config.suml +++ b/locale/en/config.suml @@ -224,16 +224,7 @@ contact: support: enabled: true - links: - - - icon: 'coffee' - url: 'https://ko-fi.com/radajezykaneutralnego' - headline: 'Ko-Fi' - - - icon: 'paypal' - iconSet: 'b' - url: 'https://paypal.me/RJNeutralnego' - headline: 'PayPal' + links: [] user: enabled: true diff --git a/locale/es/config.suml b/locale/es/config.suml index a82989c4e..79e96a5ce 100644 --- a/locale/es/config.suml +++ b/locale/es/config.suml @@ -139,16 +139,7 @@ contact: support: enabled: true - links: - - - icon: 'coffee' - url: 'https://ko-fi.com/radajezykaneutralnego' - headline: 'Ko-Fi' - - - icon: 'paypal' - iconSet: 'b' - url: 'https://paypal.me/RJNeutralnego' - headline: 'PayPal' + links: [] user: enabled: true diff --git a/locale/fr/config.suml b/locale/fr/config.suml index 3cfd04168..c18a4deef 100644 --- a/locale/fr/config.suml +++ b/locale/fr/config.suml @@ -113,16 +113,7 @@ contact: support: enabled: true - links: - - - icon: 'coffee' - url: 'https://ko-fi.com/radajezykaneutralnego' - headline: 'Ko-Fi' - - - icon: 'paypal' - iconSet: 'b' - url: 'https://paypal.me/RJNeutralnego' - headline: 'PayPal' + links: [] user: enabled: true diff --git a/locale/nl/config.suml b/locale/nl/config.suml index ce92e3a5b..6121555bd 100644 --- a/locale/nl/config.suml +++ b/locale/nl/config.suml @@ -114,16 +114,7 @@ contact: support: enabled: true - links: - - - icon: 'coffee' - url: 'https://ko-fi.com/radajezykaneutralnego' - headline: 'Ko-Fi' - - - icon: 'paypal' - iconSet: 'b' - url: 'https://paypal.me/RJNeutralnego' - headline: 'PayPal' + links: [] user: enabled: true diff --git a/locale/no/config.suml b/locale/no/config.suml index 33277050f..5bb08da0d 100644 --- a/locale/no/config.suml +++ b/locale/no/config.suml @@ -116,16 +116,7 @@ contact: support: enabled: true - links: - - - icon: 'coffee' - url: 'https://ko-fi.com/radajezykaneutralnego' - headline: 'Ko-Fi' - - - icon: 'paypal' - iconSet: 'b' - url: 'https://paypal.me/RJNeutralnego' - headline: 'PayPal' + links: [] user: enabled: true diff --git a/locale/pl/blog/skąd-nazwa-kolektywu.md b/locale/pl/blog/skąd-nazwa-kolektywu.md index 3bbb20e8c..fc01c328e 100644 --- a/locale/pl/blog/skąd-nazwa-kolektywu.md +++ b/locale/pl/blog/skąd-nazwa-kolektywu.md @@ -77,7 +77,7 @@ ale dają pojęcie, jak bardzo urosła w społeczeństwie świadomość niebinar Pojedyncze wpisy pojawiają się już od 1795 roku, natomiast w ostatnich latach liczba tekstów drastycznie szybuje w górę, do niemal stu rocznie w 2021! - + Osoby niebinarne mają potrzebę dostosować swój język do swojej tożsamości. A społeczeństwo zaskakująco szybko zdaje się tę potrzebę zaczynać dostrzegać i respektować. diff --git a/locale/pl/config.suml b/locale/pl/config.suml index bf35d1e18..80708d7c4 100644 --- a/locale/pl/config.suml +++ b/locale/pl/config.suml @@ -862,6 +862,11 @@ links: rodzajów męskiego i żeńskiego wynika z nieuświadomionej przemocy względem osób niebinarnych. Zwalczyć ją ma oswojenie społeczeństwa z wykwitem „aktywiszczy” i „partnerszczy”, oraz zaszczepienie wrażliwości na „misgendering”, czyli używanie „niewłaściwych” zaimków. + - + icon: 'b:facebook' + url: 'https://www.facebook.com/MexicoMagicoBlog/posts/238339054965464' + headline: 'No soy tu “compañera”, soy tu “compañere” \[…]' + extra: '– Mexico Magico Blog' socials: - icon: 'twitter' @@ -1033,16 +1038,7 @@ contact: support: enabled: true - links: - - - icon: 'coffee' - url: 'https://ko-fi.com/radajezykaneutralnego' - headline: 'Ko-Fi' - - - icon: 'paypal' - iconSet: 'b' - url: 'https://paypal.me/RJNeutralnego' - headline: 'PayPal' + links: [] user: enabled: true diff --git a/locale/pl/translations.suml b/locale/pl/translations.suml index 4847c63d3..eb7a0c132 100644 --- a/locale/pl/translations.suml +++ b/locale/pl/translations.suml @@ -570,7 +570,7 @@ faq: Dziś feminatywy są używane coraz częściej, i mało kogo jeszcze dziwią czy bulwersują. Z neutratywami i niebinarnymi formami językowymi może być podobnie. - > - Język jest żywy. Ewoluuje i dostosuje się do zmieniających się potrzeb jego użytkowników. + Język jest żywy. Ewoluuje i dostosuje się do zmieniających się potrzeb osób go używających. Język nie jest danym z niebios magicznym przykazaniem wyrytym w kamieniu – jest jedynie narzędziem do porozumiewania się. Może, powinien, i będzie się zmieniał – czy tego chcesz czy nie. @@ -991,10 +991,10 @@ user: headerLong: 'Twoje konto' tokenExpired: 'Sesja wygasła. Odśwież stronę i spróbuj ponownie.' login: - placeholder: 'Email (lub nazwa użytkownika, jeśli już posiadasz konto)' + placeholder: 'Email (lub nazwa użytkownicza, jeśli już posiadasz konto)' action: 'Zaloguj' emailSent: 'Na Twój adres wysłałośmy email z sześciocyfrowym kodem. Wpisz go poniżej. Kod jest jednorazowy i ważny przez 15 minut.' - userNotFound: 'Użytkownik nie został znaleziony.' + userNotFound: 'Konto nie zostało znalezione.' email: subject: 'Twój kod logowania to %code%' content: | @@ -1009,10 +1009,10 @@ user: invalid: 'Kod nieprawidłowy.' account: changeUsername: - header: 'Nazwa użytkownika' + header: 'Nazwa użytkownicza' action: 'Zmień' - invalid: 'Nazwa użytkownika musi mieć od 4 do 16 znaków i zawierać wyłącznie cyfry, litery, kropkę, myślnik i podłogę.' - taken: 'Ta nazwa użytkownika jest zajęta.' + invalid: 'Nazwa użytkownicza musi mieć od 4 do 16 znaków i zawierać wyłącznie cyfry, litery, kropkę, myślnik i podłogę.' + taken: 'Ta nazwa użytkownicza jest zajęta.' changeEmail: header: 'Adres email' action: 'Zmień' @@ -1379,7 +1379,7 @@ calendar: nonbinary_parents_day: '{https://www.familyequality.org/2021/04/16/celebrating-nonbinary-parents-day-with-founder-johnny-blazes/=Dzień Rodzicielstwa Osób Niebinarnych}' trans_prisoner: '{https://transprisoners.net/about/=Dzień Solidarności z Uwięzionymi Osobami Trans}' xenogender_day: 'Dzień Widoczności {/terminologia#ksenopłciowość=Osób Ksenopłciowych}' - banner: 'Obchodzimy właśnie' + banner: 'Dziś w kalendarzu' image: header: 'Ściągnij w formie obrazka' overview: 'Przegląd' diff --git a/locale/pt/config.suml b/locale/pt/config.suml index d4d029294..0dcddea32 100644 --- a/locale/pt/config.suml +++ b/locale/pt/config.suml @@ -109,16 +109,7 @@ contact: support: enabled: true - links: - - - icon: 'coffee' - url: 'https://ko-fi.com/radajezykaneutralnego' - headline: 'Ko-Fi' - - - icon: 'paypal' - iconSet: 'b' - url: 'https://paypal.me/RJNeutralnego' - headline: 'PayPal' + links: [] user: enabled: true diff --git a/locale/yi/config.suml b/locale/yi/config.suml index b5ed7795f..e254506cf 100644 --- a/locale/yi/config.suml +++ b/locale/yi/config.suml @@ -189,16 +189,7 @@ contact: support: enabled: true - links: - - - icon: 'coffee' - url: 'https://ko-fi.com/radajezykaneutralnego' - headline: 'Ko-Fi' - - - icon: 'paypal' - iconSet: 'b' - url: 'https://paypal.me/RJNeutralnego' - headline: 'PayPal' + links: [] user: enabled: true diff --git a/locale/zh/config.suml b/locale/zh/config.suml index 706e9dea2..40c7b48ad 100644 --- a/locale/zh/config.suml +++ b/locale/zh/config.suml @@ -120,16 +120,7 @@ contact: support: enabled: true - links: - - - icon: 'coffee' - url: 'https://ko-fi.com/radajezykaneutralnego' - headline: 'Ko-Fi' - - - icon: 'paypal' - iconSet: 'b' - url: 'https://paypal.me/RJNeutralnego' - headline: 'PayPal' + links: [] user: enabled: true diff --git a/server/routes/sources.js b/server/routes/sources.js index 563a3b9d2..059479d6f 100644 --- a/server/routes/sources.js +++ b/server/routes/sources.js @@ -19,28 +19,38 @@ const approve = async (db, id) => { `); } -const linkOtherVersions = async (req, sources) => { - const keys = new Set(sources.filter(s => !!s && s.key).map(s => `'` + clearKey(s.key) + `'`)); +const keyGetMain = (key) => { + return key.split('/')[0]; +} - const otherVersions = await req.db.all(SQL` +const linkOtherVersions = async (req, sources) => { + const keys = new Set(sources.filter(s => !!s && s.key).map(s => keyGetMain(clearKey(s.key)))); + + let sql = SQL` SELECT s.*, u.username AS submitter FROM sources s LEFT JOIN users u ON s.submitter_id = u.id WHERE s.locale != ${global.config.locale} AND s.deleted = 0 AND s.approved >= ${req.isGranted('sources') ? 0 : 1} - AND s.key IN (`.append([...keys].join(',')).append(SQL`) - `)); + AND (`; + for (let key of keys) { + sql = sql.append(SQL`s.key = ${key} OR s.key LIKE ${key + '/%'} OR `) + } + sql = sql.append(SQL`0=1)`); + + const otherVersions = await req.db.all(sql); const otherVersionsMap = {}; otherVersions.forEach(version => { - if (otherVersionsMap[version.key] === undefined) { - otherVersionsMap[version.key] = []; + const k = keyGetMain(version.key); + if (otherVersionsMap[k] === undefined) { + otherVersionsMap[k] = []; } - otherVersionsMap[version.key].push(version); + otherVersionsMap[k].push(version); }); return sources.map(s => { - s.versions = s.key ? otherVersionsMap[s.key] || [] : []; + s.versions = s.key ? otherVersionsMap[keyGetMain(s.key)] || [] : []; return s; }); }; diff --git a/server/routes/user.js b/server/routes/user.js index 8a7a30366..a8f352a7c 100644 --- a/server/routes/user.js +++ b/server/routes/user.js @@ -292,7 +292,7 @@ router.post('/user/change-username', handleErrorAsync(async (req, res) => { } const dbUser = await req.db.get(SQL`SELECT * FROM users WHERE usernameNorm = ${normalise(req.body.username)}`); - if (dbUser) { + if (dbUser && dbUser.id !== req.user.id) { return res.json({ error: 'user.account.changeUsername.taken' }) }