Commit Graph

21657 Commits (6074a0fbbf1b60519d7bd5604be54d5dd2eea732)
 

Author SHA1 Message Date
Julian Lam ab2e1ecb40 feat(topic-events): work in progress topic events logic and client-side implementation
Julian Lam faf5960373 fix: bug where `action:ajaxify.end` was never called if there were no init scripts
Julian Lam 8e5687a4af refactor(hooks): deprecate `action:script.load` client-side hook
Use `static:script.init` instead.
Julian Lam efff8e2ae2 fix(hooks): bug where hook firing would fail if there were no listeners
Julian Lam e7bd038db1 refactor(hooks): better error handling
Hook listeners can both throw and reject, and it will be handled appropriately (e.g. filters won't fail)
Julian Lam 8ff07bc196 fix: update js concatenation logic to bundle scripts.rjs into minfile regardless of build environment
The slowdown is fairly insignificant (< .1s), and the only change is the minified file is identical across environments, which is better from a debugging standpoint
Julian Lam 1d77572117 feat(hooks): update action:ajaxify.end to use new hooks module
Julian Lam 412d285850 fix(hooks): fallback handling for core invocations of hooks.fire
+ .on() which is the same as .register()
Julian Lam 01c9b1847e feat(hooks): client-side hooks module
Similar to server-side, comes with three hook types, filter, action, and static. Behaviour also mimics server-side.
Misty (Bot) 42c0f9ac52 Latest translations and fallbacks
Misty (Bot) 39bc741bca Latest translations and fallbacks
Julian Lam f975063b7d fix: , allow list for page route, configurable via plugin hook
Julian Lam 8b72479f62 fix: remove 'filters' and 'categories' from flag details API return [breaking]
These options were originally used when the flag filters were shown in the sidebar. This has seen been removed, and so the information is now superfluous
Julian Lam 1603566bcc fix: filtering logic of flags [breaking]
When combining filters, the old logic assumed that every filter was
exclusive, unless that filter contained multiple items, in which
case it was added to a list of "or" filters that returned all
matching flags.

A fault was discovered in that if you passed in multiple "or"
states, it did not return flags with the expected filtering.

e.g. open flags, closed flags, flags of cid 1, flags of cid 2

This could return open flags of cid 3, since all of the filters
were "OR"'d.

This logic change updates the behaviour so disparate OR sets are
intersected (ANDed).
Julian Lam 942d924779 fix: error on flag list if no flag filters were saved in session
Julian Lam 6b1c97db79 feat: feature flag for auto-resolving a user's flags on ban [breaking]
The default behaviour has now been changed to 'off'. Going forward, a user's flags will no longer automatically resolve on ban.
Misty (Bot) a396b1099c Latest translations and fallbacks
Julian Lam 35c92d0cff fix: mod cid filter accidentally saved in session
Julian Lam ce7c74b2e1 fix: more tests for
Julian Lam f2a5cd0b67 fix: tests for
Julian Lam 27cae0d5d8 fix: missing return for
Julian Lam b2b1450e5d fix: , render 400 error page on bad access to /register
Misty (Bot) 06e2ef1a8e Latest translations and fallbacks
Misty (Bot) 65849d9b93 Latest translations and fallbacks
Barış Soner Uşaklı 78896fc623 fix: redis check compat tests
Barış Soner Uşaklı fdfbc90255 feat: async/await redis connection
Barış Soner Uşaklı 33bf1b0e2c feat: async/await psql connection
Barış Soner Uşaklı 672959c13f feat: add group name to csv event
Julian Lam a186ea0fe3 fix: registration completion overriding returnTo if it was already set
Julian Lam 280285cda9 feat: allow interstitial callbacks to be async functions [breaking]
This change is breaking in the sense that if you have written
interstitial callbacks before that are async functions _with_ a
callback, those are no longer allowed. You will not need to call
next() as that argument will no longer be passed in to async
functions.
Misty (Bot) d1f78cb8c0 Latest translations and fallbacks
Renovate Bot 5b2f0be080 fix(deps): update dependency postcss to v8.2.4
Renovate Bot d99cb1cf83 fix(deps): update dependency autoprefixer to v10.2.3
Renovate Bot 4232d97b57 fix(deps): update dependency postcss-clean to v1.2.0
Barış Soner Uşaklı 525fbeeb4d Merge branch 'master' of https://github.com/NodeBB/NodeBB
Barış Soner Uşaklı 5c1b742979 fix: add missing user delete event types
psychobunny 1c42060241 fix: missing option for user-deleteAccount on ACP Events page
Misty (Bot) ea7f838170 chore: incrementing version number - v1.16.2
(cherry picked from commit 023e4cfcee208a0bae121a6e343a8c53009fd090)
Signed-off-by: Misty (Bot) <deploy@nodebb.org>
Misty (Bot) d3883d4bd9 chore: update changelog for v1.16.2
renovate[bot] b5cb2f8b9c
fix(deps): update dependency bootbox to v5 ()
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Misty (Bot) a55051de2f Latest translations and fallbacks
Barış Soner Uşaklı 7fb583dcfd Merge branch 'master' of https://github.com/NodeBB/NodeBB
Barış Soner Uşaklı c608b0e8a3 fix: https://github.com/NodeBB/nodebb-plugin-webhooks/issues/3
Julian Lam d85ad10d34 fix: restored sanity checks for post move socket calls
Julian Lam 966c4117ec refactor(api): post move to write API
Barış Soner Uşaklı 0fa4c11ea6 fix: don't chagne scrollTop if at the top of page
Julian Lam e118e59ce0 refactor(api): post diffs to use write API
Barış Soner Uşaklı c2e2370655 feat: add filter:email.cancel to allow plugins to cancel sending emails
Barış Soner Uşaklı 1590cdf19f fix: , fix double escaped arguments
Julian Lam f5fcd232f6 fix: regression caused by 77ab46686d
Access checks were added for topic GET route, but occasionally a post_uuid is passed in, which is available to everyone, and so checks should be skipped