Commit Graph

1498 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
8bc2ef227e refactor: get rid of async.waterfall/series 2023-09-13 16:23:49 -04:00
Barış Soner Uşaklı
e15d68d195 Merge branch 'master' into develop 2023-09-11 16:01:41 -04:00
Julian Lam
9dc9d5ef54 test: remove errant .only() 2023-09-11 14:27:14 -04:00
Barış Soner Uşaklı
dcccbe69e3 Merge branch 'master' into develop 2023-09-11 12:02:28 -04:00
Barış Soner Uşaklı
6625116634 test: fix room count 2023-09-11 10:29:53 -04:00
Barış Soner Uşaklı
53106c009c fix: toMid to posts you cant see 2023-09-11 10:20:10 -04:00
Julian Lam
8202c5555d test: 💥 i18n tests 2023-09-07 11:49:40 -04:00
Julian Lam
ff07fc44e2 fix: failing test due to increased chat message delay 2023-09-07 11:39:22 -04: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ı
1a1fd64d9a fix: deleted chat messages (#11962)
* fix: deleted chat messages

* fix spec
2023-08-28 12:10:42 -04:00
Barış Soner Uşaklı
9720bb4846 Merge branch 'master' into develop 2023-08-24 14:36:25 -04:00
Barış Soner Uşaklı
d5c8bf9eb1 test: add some tests for isPrivilegeGroup 2023-08-24 14:26:27 -04:00
Barış Soner Uşaklı
9534f9b9b9 feat: check mute when messaging, closes #11932 2023-08-19 17:15:06 -04:00
Barış Soner Uşaklı
6b09b7c7d4 test: fix tests, dont hang if payload is string
closes #11933
2023-08-19 16:40:43 -04:00
Barış Soner Uşaklı
35e689cff5 test: fix redirect test 2023-08-16 20:11:22 -04:00
Barış Soner Uşaklı
38c0c8dec0 refactor: ip blacklist.test
also dont call ipaddr.parse if cidr rules is empty
add a test for cidr
2023-08-02 12:52:46 -04:00
Barış Soner Uşaklı
82562bec44 fix: fix escaped characters in tooltips, fix priv checks in tooltips
closes #11862, closes #11857
2023-08-01 11:25:37 -04:00
Barış Soner Uşaklı
11bfeaf130 feat: #11850, chat msg search 2023-07-28 10:56:25 -04:00
Barış Soner Uşaklı
d615273d90 test: fix tests to use regular uid 2023-07-26 10:07:38 -04:00
Barış Soner Uşaklı
e41042eeea test: fix tests since nid format changed 2023-07-25 11:11:31 -04:00
Barış Soner Uşaklı
4f3f9d9891 mark chat room notifs read on load 2023-07-21 16:19:26 -04:00
Barış Soner Uşaklı
9e574e0765 test: fix test 2023-07-19 08:05:22 -04:00
Barış Soner Uşaklı
00be053e94 fix: topic postercount field if owner is changed
also fix when posts are purged
2023-07-18 12:38:17 -04:00
Barış Soner Uşaklı
91642cb324 feat: allow multiple room owners, closes #6503 2023-07-17 22:42:00 -04:00
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
2023-07-12 13:03:54 -04:00
Barış Soner Uşaklı
e31f5c42ee test: fix 2023-07-08 00:37:04 -04:00
Barış Soner Uşaklı
2791eb8aac fix: group membership methods for guests/spiders
add tests to cover different combinations
2023-06-28 20:55:01 -04:00
Julian Lam
a8399aa23a test: make email requirement flag changes more explicit in tests, so cases do not rely on variable values from other cases 2023-06-21 11:09:10 -04:00
Barış Soner Uşaklı
c638186b33 test: fix another test 2023-06-20 19:24:21 -04:00
Barış Soner Uşaklı
64718d0ce0 test: fix email tests @julianlam 2023-06-20 19:02:46 -04:00
Barış Soner Uşaklı
ad1da0218a Merge branch 'master' into develop 2023-06-20 18:52:36 -04:00
Barış Soner Uşaklı
f2fe7c0686 fix: #11735, crash when making guest reply
to /api/compose route
2023-06-20 18:51:46 -04:00
Barış Soner Uşaklı
86faed6fd3 feat: add vote privs to topic (#11734)
* feat: add vote privs to topic

* add missing awaits
2023-06-20 14:16:17 -04:00
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
2023-06-13 12:32:48 -04:00
Barış Soner Uşaklı
db3bff094e fix: #11679, fix username change
only effected usernames with special characters & quotes
2023-06-05 17:11:49 -04:00
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
2023-06-05 12:12:48 -04:00
Barış Soner Uşaklı
d3c5a79d44 fix: #11664, dont create backlinks for quotes 2023-06-01 13:48:12 -04:00
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
2023-05-31 11:54:48 -04:00
Barış Soner Uşaklı
1ab0faa4a9 test: remove is touch test 2023-05-27 13:33:18 -04:00
Barış Soner Uşaklı
24ebb1536b test: remove socket.io test 2023-05-23 16:48:00 -04:00
Barış Soner Uşaklı
366b18e02f test: remove socket.io test 2023-05-23 16:41:26 -04:00
Barış Soner Uşaklı
3cb4edf19e test: log socket.io error
dont call callback twice
2023-05-22 10:20:56 -04:00
Barış Soner Uşaklı
12e75ff418 test: fix another test 2023-05-21 17:44:27 -04:00
Barış Soner Uşaklı
c201bf4507 test: fix test 2023-05-21 17:02:59 -04:00
Barış Soner Uşaklı
51096ad234 poc: use csrf_token in ws handshake (#11573) 2023-05-15 11:15:53 -04:00
Barış Soner Uşaklı
63b859f053 poc: use csrf_token in ws handshake (#11573) 2023-05-15 11:12:46 -04:00
Barış Soner Uşaklı
031ffe491e test: add back missing tests 2023-05-12 10:22:13 -04:00
Barış Soner Uşaklı
bd80d36e0d Merge branch 'master' into develop 2023-05-12 09:48:25 -04:00
Barış Soner Uşaklı
a75fd636ad test: add missing tests 2023-05-11 20:21:57 -04:00
Barış Soner Uşaklı
aff6d20f9f test: fix digest test 2023-05-11 19:01:28 -04:00