1490 Commits (3e07c18d264f80042f9074d6c8c6fa8dbd00536e)

Author SHA1 Message Date
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
1 year ago
Barış Soner Uşaklı 1a1fd64d9a
fix: deleted chat messages (#11962)
* fix: deleted chat messages

* fix spec
1 year ago
Barış Soner Uşaklı 9720bb4846 Merge branch 'master' into develop 1 year ago
Barış Soner Uşaklı d5c8bf9eb1 test: add some tests for isPrivilegeGroup 1 year ago
Barış Soner Uşaklı 9534f9b9b9 feat: check mute when messaging, closes #11932 1 year ago
Barış Soner Uşaklı 6b09b7c7d4 test: fix tests, dont hang if payload is string
closes #11933
1 year ago
Barış Soner Uşaklı 35e689cff5 test: fix redirect test 1 year ago
Barış Soner Uşaklı 38c0c8dec0 refactor: ip blacklist.test
also dont call ipaddr.parse if cidr rules is empty
add a test for cidr
1 year ago
Barış Soner Uşaklı 82562bec44 fix: fix escaped characters in tooltips, fix priv checks in tooltips
closes #11862, closes #11857
1 year ago
Barış Soner Uşaklı 11bfeaf130 feat: #11850, chat msg search 2 years ago
Barış Soner Uşaklı d615273d90 test: fix tests to use regular uid 2 years ago
Barış Soner Uşaklı e41042eeea test: fix tests since nid format changed 2 years ago
Barış Soner Uşaklı 4f3f9d9891 mark chat room notifs read on load 2 years ago
Barış Soner Uşaklı 9e574e0765 test: fix test 2 years ago
Barış Soner Uşaklı 00be053e94 fix: topic postercount field if owner is changed
also fix when posts are purged
2 years ago
Barış Soner Uşaklı 91642cb324 feat: allow multiple room owners, closes #6503 2 years ago
Barış Soner Uşaklı 9b901783fa
Chat refactor (#11779)
* first part of chat refactor

remove per user chat zsets & store all mids in chat:room:<roomId>:mids
reverse uids in getUidsInRoom

* feat: create room button

public groups wip

* feat: public rooms

create chats:room zset
chat room deletion

* join socket.io room

* get rid of some calls that load all users in room

* dont load all users when loadRoom is called

* mange room users infinitescroll

dont load all members in api call

* IS for user list

ability to change groups field for public rooms
update groups field if group is renamed

* test: test fixes

* wip

* keep 150 messages

* fix extra awaits

fix dupe code in chat toggleReadState

* unread state for public rooms

* feat: faster push unread

* test: spec

* change base to harmony

* test: lint fixes

* fix language of chat with message

* add 2 methods for perf

messaging.getTeasers and getUsers(roomIds)
instead of loading one by one

* refactor: cleaner conditional

* test fix upgrade script fix

save timestamp of room creation in room object

* set progress.total

* don't check for guests/spiders

* public room unread fix

* add public unread counts

* mark read on send

* ignore instead of throwing

* doggy.gif

* fix: restore delete

* prevent entering chat rooms with

meta.enter

* fix self message causing mark unread

* ability to sort public rooms

* dont init sortable on mobile

* move chat-loaded class to core

* test: fix spec

* add missing keys

* use ajaxify

* refactor: store some refs

* fix: when user is deleted remove from public rooms as well

* feat: change how unread count is calculated

* get rid of cleaned content

get rid of mid

* add help text

* test: fix tests, add back mid

to prevent breaking change

* ability to search members of chat rooms

* remove

* derp

* perf: switch with  partial data

fix tests

* more fixes

if user leaves a group leave public rooms is he is no longer part of any of the groups that have access

fix the cache key used to get all public room ids

dont allow joining chat socket.io room if user is no longer part of group

* fix: lint

* fix: js error when trying to delete room after switching

* add isRoomPublic
2 years ago
Barış Soner Uşaklı e31f5c42ee test: fix 2 years ago
Barış Soner Uşaklı 2791eb8aac fix: group membership methods for guests/spiders
add tests to cover different combinations
2 years ago
Julian Lam a8399aa23a test: make email requirement flag changes more explicit in tests, so cases do not rely on variable values from other cases 2 years ago
Barış Soner Uşaklı c638186b33 test: fix another test 2 years ago
Barış Soner Uşaklı 64718d0ce0 test: fix email tests @julianlam 2 years ago
Barış Soner Uşaklı ad1da0218a Merge branch 'master' into develop 2 years ago
Barış Soner Uşaklı f2fe7c0686 fix: #11735, crash when making guest reply
to /api/compose route
2 years ago
Barış Soner Uşaklı 86faed6fd3
feat: add vote privs to topic (#11734)
* feat: add vote privs to topic

* add missing awaits
2 years ago
Barış Soner Uşaklı 8ca65b0c78
fix: dont send 200 status on admin upload errors (#11707)
* fix: dont send 200 status on admin upload errors

* test: update test

* bring back both checks for error

* test: add statusCode tests
2 years ago
Barış Soner Uşaklı db3bff094e fix: #11679, fix username change
only effected usernames with special characters & quotes
2 years ago
Barış Soner Uşaklı 04998908ba
Fixes for "validate email" & "send validation email" in ACP (#11677)
* confirmObj changes

dont expire confirm:<code>, add a expires field instead
dont expire confirm:byUid:<uid>

on admin manage users display the users email status
	1. verified
	2. verify email sent (pending)
	3. verify email sent (expired)
	4. no email entered

fix validate email in acp to use
	email in user:<uid> if they have one
	if not check if its in confirm:<code>
	if its not in above cant validate throw error

fix send validate email to use
	email in user:<uid> if they have one
	if not check if its in confirm:<code>
	if its not in above too cant validate throw error

* add back socket.io tests

* test: fix confirm tests

no longer using pexpire
return correct time left on token

* chore: update openapi

* fix: delete call

* test: mget test fixes

* test: fix tests
2 years ago
Barış Soner Uşaklı d3c5a79d44 fix: #11664, dont create backlinks for quotes 2 years ago
Barış Soner Uşaklı c3afe44686
Acp redesign (#11639)
* acp sidebar

* gap in nav

* remove shadow

* label fixes

* color fixes

* feat: settings page wip

* feat: scroll spy 👓

move social into general, store social in meta.config like other settings
write upgrade script

* remove social

* rermove openapi routes

* cleanup, highlight selected nav item

* more cleanup

* advanced margin top

* derp

* match design

* bring back version alert

fix homepage js, since it moved to general settings

* remove unused tpls

these moved to general settings

* remove more  css

* offcanvas for mobile

fix search

* add timeout

* add new props

* manage categories

* small fixes

* category-edit

* feat category page fixes

* add title to settings pages

add user settings page

* small fixes

* some more settings pages

* fix: plugin page titles

* more settings pages

* more padding

* more pages, add acp paginator.tpl

so it doesn't change when active theme changes

* remove placeholder

* dashboard table

* fix: openapi

* fix: controller tests

* use fonts from core

* some small fixes

* fix rep page

* refactor: fix name of upgrade script

* create category modal

group edit

* group/groups pages

* admins mods

* privs

* uploads

* missing margin

* more acp pages

* more pages

* plugins/rewards/widgets

* wrap rewards

* fix widgets

* fix widget clone button

* fix group acp edit link

* update search dropdown

* remove display block from tbody

* use less css

* remove some derp links

* remove striped tables

* remove p tags from lang files

* update email settings

* Update api.tpl

* move tag-whitelist
2 years ago
Barış Soner Uşaklı 1ab0faa4a9 test: remove is touch test 2 years ago
Barış Soner Uşaklı 24ebb1536b test: remove socket.io test 2 years ago
Barış Soner Uşaklı 366b18e02f test: remove socket.io test 2 years ago
Barış Soner Uşaklı 3cb4edf19e test: log socket.io error
dont call callback twice
2 years ago
Barış Soner Uşaklı 12e75ff418 test: fix another test 2 years ago
Barış Soner Uşaklı c201bf4507 test: fix test 2 years ago
Barış Soner Uşaklı 51096ad234 poc: use csrf_token in ws handshake (#11573) 2 years ago
Barış Soner Uşaklı 63b859f053
poc: use csrf_token in ws handshake (#11573) 2 years ago
Barış Soner Uşaklı 031ffe491e test: add back missing tests 2 years ago
Barış Soner Uşaklı bd80d36e0d Merge branch 'master' into develop 2 years ago
Barış Soner Uşaklı a75fd636ad test: add missing tests 2 years ago
Barış Soner Uşaklı aff6d20f9f test: fix digest test 2 years ago
Barış Soner Uşaklı 4bfebc8123 test: add email 2 years ago
Barış Soner Uşaklı 1f03d41471 Merge branch 'develop' of https://github.com/NodeBB/NodeBB into develop 2 years ago
Barış Soner Uşaklı 61563b01df test: digest 2 years ago
Julian Lam 3251bca24b fix: failing test case 2 years ago
Julian Lam 6765d053ce test: additional tests for .roll() 2 years ago
Julian Lam f42b636adc test: fix authentication tests to use new token saving utility functions 2 years ago
Julian Lam 4f524e9f94 feat: token rolling API for admins
+ tests
2 years ago
Julian Lam e4888dea17 feat: api token migration, new ACP tokens list, token creation 2 years ago