Commit Graph

758 Commits (0b8d18332ebb5d7075e4aa8b1c2fe041466b07a6)

Author SHA1 Message Date
Baris Usakli 23da300958 feat: pass options to digest
Julian Lam d3a10628e7 fix: broken 50% border radius on emails, failing tests
Julian Lam 3a7f1c192b fix: failing tests from revamped-emails branch
Barış Soner Uşaklı c6ad8fae2a fix:
Barış Soner Uşaklı 5917dec288
fix: only allow numbers as scores ()
* zadd score checks

* fix: only allow numbers as scores

* fix: convert values to strings
Julian Lam 0c09b7402d feat: logging password resets and errors into event log
closes , also adds tests for password reset socket calls
Barış Soner Uşaklı c72da5595a fix:
3 new global privileges
view:users
view:tags
view:groups
Barış Soner Uşaklı ae779ea4f9 fix:
Barış Soner Uşaklı 9d1fcf4e36 fix: closes
Barış Soner Uşaklı 5353960ae7 fix:
Barış Soner Uşaklı bc41848adb fix: test
renovate[bot] 8a64667ff8 fix(deps): update dependency sharp to v0.21.3 ()
* fix(deps): update dependency sharp to v0.21.3

* fix: tests for new sharp version errors
Julian Lam c831ff0de3
fix: removal of timeago fallback middleware ()
* fix: removal of timeago fallback middleware

Instead of loading English fallback on missing language, we opt
to not send a script tag for a missing language to begin with.

Timeago already loads with English as default, so it will just
continue to use English.

* fix: check userLang against supported language codes

* fix: cleaned up code as per @pitaj

* fix: added comments

* fix: more fixes as per @pitaj

* feat: added addl. test for timeago locales, fixed broken test
Julian Lam 70a87d4399
feat: support for one-click unsubscribe from email clients ()
* feat: sending notifs via ACP creates real notification

re: 

* feat: basic integration for one-click unsubscription 

* feat: tests for  + bugfix

* feat: added and organized digest unsub tests

closes 
renovate[bot] 84e228bbb8 fix(deps): update dependency diff to v4 ()
* fix(deps): update dependency diff to v4

* chore(deps): +diff@4.0.1

* fix: test for 
Baris Usakli 7809ba2800 fix: , closes
Barış Soner Uşaklı 3917022a48 fix:
Barış Soner Uşaklı 7e828404f6 fix:
dont save relative_path in db for group covers
Baris Usakli 0c1ac4d6a2 feat:
Barış Soner Uşaklı fef7e13c9e feat: small fixes
Barış Soner Uşaklı 99e0895e99 fix: move the check to get methods
all .post methods will have csrf
Barış Soner Uşaklı eb7ae54f81
Category watch state ()
* feat: wip, category watch change

* feat: pass data to client

* feat: allow changing state

* fix: account page categories

* fix: show in unread if topic is followed or category is watched

* feat: add default watch state to acp

* feat: save user category watch state

* feat: update unread recent pages

* fix: remove dupe code

* fix: flip conditions

* fix: handle empty arrays

* fix: ignore/watch on others profile

* feat: upgrade script for category states

if there are any users ignoring categories set their state in new zset and delete cid:<cid>:ignorers

* fix: upgrade

* fix: tests

* fix: redis count

* fix: more tests
Barış Soner Uşaklı 263c918088
feat: remove uid:<uid>:ignored:cids ()
use cid:<cid>:ignorers instead
Barış Soner Uşaklı 26ccd8f626 fix: db info page
if there is no connection to db, connect first
Barış Soner Uşaklı 81aa3a0b8a fix: don't crash in flags.validate if user blocked target
Barış Soner Uşaklı e55fb43703 fix:
Baris Usakli e65d40c937 dont return undefined from sortedSetsCard if keys is empty or falsy
Baris Usakli 76af8caf58 add missing semicolon
Baris Usakli 420227faae parseFloat scores
Julian Lam 5f3d1c76c8
fix: , autoLocale logic not playing nicely with no-refresh auths ()
* fix: , autoLocale logic not playing nicely with no-refresh auths

- on login, req.query.lang is deleted (since it seems to be left over)
- on logout, the middleware.autoLocale is executed, which resets
  req.query.lang
- middleware.autoLocale is new, just refactored existing logic in
  webserver.js into new middleware method.

* style: tests, use lodash

* fix: timeago strings not switching languages on login or out
Baris Usakli d3c6cba33f closes
Barış Soner Uşaklı a63ddbe2aa fix:
if category doesn't exist return null and 404
Barış Soner Uşaklı 1f918ca8f8
Home route ()
* fix: WIP home fix

* remove console.log

* fix: 

on redis run all tests in subfolder /forum
fix URI errors
fix sping/ping
Baris Usakli cd46febdd0 fix lint
Baris Usakli b86f155690 fix:
Peter Jaszkowiak ba619c7ec8 style(eslint): match operator-linebreak preferences
Barış Soner Uşaklı 00a066985a cache categories:cid and cid:<cid>:children
these rarely change, no need to go to db for them
Barış Soner Uşaklı c240733aee fix logs test
Barış Soner Uşaklı 0361849bb1 check status code
Barış Soner Uşaklı 47b2057f20
Barış Soner Uşaklı 53ad2bbd6e
Categories optimize ()
* WIP

* fix category page

* fix counts, and copyPrivileges

* fix lint

* more fixes,

* redis fix

* fix test

* fix  category test

* remove getParentsAndChildren
Barış Soner Uşaklı 9d28b935fd dont load uid 0, -1 from db
Barış Soner Uşaklı a6864a8055 add groupTitle test for guests
Barış Soner Uşaklı ca1e3a758b
Baris Usakli b83e50f286 remove delayImageLoading from api @julianlam
Barış Soner Uşaklı afa84023a2 closes
Barış Soner Uşaklı f8e219c323 handle empty set, add test
Barış Soner Uşaklı b6771836cf closes
Baris Usakli 62787368c6 add searchonly option to searh api
Julian Lam da10ca084b fix: , allow square brackets in usernames