Commit Graph

10277 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
f1a80d48cc 10411 (#12037)
* feat: add type to privilege maps

deprecate old hooks that are used for adding new privileges, new hooks are static:privileges.global.init/static:privileges.categories.init

* deprecate admin priv hooks

* fix: if type doesnt exist default to 'other'

* remove filter

* fix: copy privilege functions to use new filter instead of indices

allow static hooks to use sync functions

* fix: openapi

* test: fix template helper
2023-09-25 20:42:18 -04:00
Barış Soner Uşaklı
a0ae31d0a7 Merge branch 'master' into develop 2023-09-25 10:51:44 -04:00
Barış Soner Uşaklı
379ed0e2e8 refactor: remove nested promise 2023-09-25 10:49:14 -04:00
pkuanvil-uid1
aff19a6c6b fix: properly wrap promise to callback-style function (#12030)
Async function xhr use a mixture of await and callback, which is not correct when an exception is thrown before callback happens. Use only async/await for it and create a new callback-style wrapper.
2023-09-25 10:48:31 -04:00
Barış Soner Uşaklı
b518e03671 fix: #12032, truncate long category names 2023-09-24 20:08:49 -04:00
Misty Release Bot
6c578d6cd4 Latest translations and fallbacks 2023-09-22 09:19:16 +00:00
Barış Soner Uşaklı
a7517d886f feat: add new hook action:chat.onMessagesAddedToDom
fires whenever new messages are added to dom
* receive new message
* added by scrolling up to load old messages
2023-09-20 09:48:45 -04:00
Misty Release Bot
293b460a63 Latest translations and fallbacks 2023-09-20 09:20:01 +00:00
Misty Release Bot
d92a96ed45 Latest translations and fallbacks 2023-09-17 09:18:41 +00:00
Barış Soner Uşaklı
6553e45408 fix: remaining text, when sending with send button 2023-09-16 21:07:18 -04:00
Barış Soner Uşaklı
d906097a22 feat: add composerActions for chat rooms 2023-09-16 20:46:54 -04:00
Misty Release Bot
f098db7fd3 Latest translations and fallbacks 2023-09-15 09:19:18 +00:00
Misty Release Bot
6cfde97eb4 Latest translations and fallbacks 2023-09-14 09:19:51 +00:00
Barış Soner Uşaklı
e2777f4a4e allow editing pinned chat messages
only update message body and edited component
2023-09-12 12:16:09 -04:00
Misty Release Bot
ec3ab9867b chore(i18n): fallback strings for new resources: nodebb.modules 2023-09-11 20:50:26 +00:00
Barış Soner Uşaklı
8c977f4c06 feat: add heading strings 2023-09-11 16:48:54 -04:00
Misty Release Bot
42e2486af3 Latest translations and fallbacks 2023-09-11 09:20:40 +00:00
Misty Release Bot
867959b03b Latest translations and fallbacks 2023-09-09 09:18:55 +00:00
Misty Release Bot
3dccf327fa Latest translations and fallbacks 2023-09-08 09:19:55 +00:00
Julian Lam
2b3d205532 fix(i18n): fallbacks for new language keys 2023-09-07 12:08:20 -04:00
Misty Release Bot
968ee0c71d chore(i18n): fallback strings for new resources: nodebb.admin-settings-chat 2023-09-07 15:39:46 +00:00
Julian Lam
223e76569b feat: introduce new ACP setting for newbie chat message delay, defaults to 2 minutes 2023-09-07 11:39:22 -04:00
Julian Lam
9b384b986b fix(i18n): push fallbacks for modules resource 2023-09-07 11:30:06 -04:00
Misty Release Bot
1d0d3ad76b Latest translations and fallbacks 2023-09-07 09:19:46 +00:00
Barış Soner Uşaklı
aebd9278c2 refactor: reduce socket.emits for typing
if textarea changess between empty/full emit right away
2023-09-06 18:30:04 -04:00
Barış Soner Uşaklı
4d1b8e76b3 refactor: reduce socket.emits for typing
if textarea changess between empty/full emit right away
2023-09-06 17:01:09 -04:00
Barış Soner Uşaklı
c185693617 Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2023-09-06 15:32:10 -04:00
Julian Lam
88dd21e26f fix: better labels in ACP chat settings, #11983 2023-09-06 15:21:40 -04:00
Barış Soner Uşaklı
e4ecb96f1a fix: closes #11982, fix element in prepEdit 2023-09-06 12:49:37 -04:00
Barış Soner Uşaklı
f2c4041fcb fix: prep edit so textarea isn't below text input 2023-09-06 12:40:15 -04:00
Barış Soner Uşaklı
98c3d2e96d refactor: use map/get 2023-09-05 13:42:34 -04:00
Barış Soner Uşaklı
bb460d6f2c Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2023-09-05 09:48:38 -04:00
Barış Soner Uşaklı
ded596fe3d fix: don't create tooltips on mobile 2023-09-05 09:48:34 -04:00
Misty Release Bot
9bb213b3a6 Latest translations and fallbacks 2023-09-04 09:19:22 +00:00
Misty Release Bot
82a5bb5f1e Latest translations and fallbacks 2023-09-03 09:18:55 +00:00
Barış Soner Uşaklı
34242e7a4f lint: remove unused translator 2023-09-02 23:09:27 -04:00
Barış Soner Uşaklı
45ed12c500 chore: up themes, dont send typing on page load 2023-09-02 21:47:12 -04:00
Barış Soner Uşaklı
600357444d feat: typing user list in chat 2023-09-02 21:18:00 -04:00
Misty Release Bot
7e4b4d3a33 Latest translations and fallbacks 2023-09-02 09:18:52 +00:00
Barış Soner Uşaklı
92f5c146fd feat: add data-allow-dupe and data-navigator-ignore
these can be used by plugins like q&n to dupe a post
instead of relying on magic -1 index
2023-09-02 00:07:35 -04:00
Barış Soner Uşaklı
bdeca04951 fix: always return string from helper
if value ended up being 0 it wasnt output
2023-09-01 20:41:14 -04:00
Misty Release Bot
55cb1d7868 Latest translations and fallbacks 2023-08-31 09:19:11 +00:00
Barış Soner Uşaklı
8db13d8e86 refactor: how admins change emails (#11973)
* refactor: how admins change emails

ability for admins to change emails from acp
ability for admins to change passwords from acp
only users themselves can use /user/<slug>/edit/email
group actions in manage users dropdown
admins can use the same modal from profile page instead of interstitial to update email
add missing checks to addEmail, if email take throw error
add targetUid to email change event

* test: bunch of baloney

* test: remove old test
2023-08-30 19:29:46 -04:00
Barış Soner Uşaklı
6ae0d207a7 fix: double escape issue, body is escaped in composer-default 2023-08-30 12:10:52 -04:00
Barış Soner Uşaklı
9f7a39c59c fix: make selector stricter
so navigator number doesn't change due to nested replies
2023-08-30 11:49:28 -04:00
Barış Soner Uşaklı
887dfd7da7 fix: #11969, match the server side behaviour for filters
if there is an error bubble all the way up
2023-08-30 11:19:29 -04:00
Barış Soner Uşaklı
81961255f1 Merge branch 'master' into develop 2023-08-29 19:32:57 -04:00
Barış Soner Uşaklı
a3d6dba69f feat: add a filter hook to login
so async checks can be made by plugins
like showing custom dialogs before login etc.
setting cancel=true in plugin returns back to login page
throwing errors will show it once #11969 is fixed
2023-08-29 19:05:37 -04:00
Barış Soner Uşaklı
29f77a8829 Merge branch 'master' into develop 2023-08-29 11:30:19 -04:00
NoScripter
90ac82d017 fix: remove og:image value (#11966) 2023-08-29 11:17:09 -04:00