Commit Graph

2513 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
b65d8e823a feat: add new notif type for public rooms
change notification text to display more users
  * user1 wrote in general
  * user1 and user2 wrote in general
  * user1, user2 and user3 wrote in general
  * user1. user2 and 2 others wrote in general
2023-08-20 11:51:09 -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ı
7dd143e1f8 fix: show access denied instead of internal error
when user doesn't have access to chats
2023-08-18 21:40:39 -04:00
Barış Soner Uşaklı
b958a39a66 feat: log roomId/roomName on delete 2023-08-18 20:47:55 -04:00
Julian Lam
d94c5cc127 Merge remote-tracking branch 'origin/master' into develop 2023-08-17 17:19:30 -04:00
Julian Lam
19e047e2d3 fix: #11906, userData.sso — don't serve deauthUrl or non-associated url if caller uid is not same as target uid 2023-08-17 17:18:30 -04:00
Barış Soner Uşaklı
b7920b7ad9 lets test perm redirect 2023-08-16 19:35:23 -04:00
Barış Soner Uşaklı
76fde8efd7 feat: #11897, show guest handles in post queue and after using POST /compose 2023-08-10 14:06:00 -04:00
Barış Soner Uşaklı
0316f324e7 feat: add toMid to chat messages 2023-08-06 02:33:28 -04:00
Barış Soner Uşaklı
acef5e3343 feat: add category selector to analytics page
closes #11878
2023-08-04 13:22:48 -04:00
Opliko
b709ed9e63 feat: move to npm fontawesome dependency and support fa pro (#11820)
* feat: move to npm fontawesome dependency

* feat: move shims to a separate file

* fix: thin style prefix

* feat: proper style and FA pro handling in icon selector

* docs: add fontawesome properties to openAPI

* fix: default for styles

* feat: select all styles by default

Turns out browsers lazy-load fonts.
So since the actual CSS for each style is small, there is no perf reason for defaulting to free styles for FA pro users.
This means they'll have to only change one setting.

Still, the option to select styles remains for those who want it.

* fix: remove console.log
2023-07-31 11:22:09 -04:00
Opliko
8ac34f8e8e feat: password check hook (#11853)
* feat: filter:password.check hook

As requested on Discord, hopefully including all relevant user data

* fix: don't use caller uid

* feat: don't forward username separately
2023-07-30 19:18:21 -04:00
Barış Soner Uşaklı
207776d474 Merge branch 'master' into develop 2023-07-29 20:34:22 -04:00
Opliko
c95119156d fix: register abort can error on weird session state (#11854) 2023-07-29 20:11:17 -04:00
Barış Soner Uşaklı
f359a76702 feat: #11814, dont check content len for admins 2023-07-26 09:58:16 -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ı
a16ee32d31 Merge branch 'master' into develop 2023-07-15 22:09:27 -04:00
Barış Soner Uşaklı
2a3d6d5cfb fix: logs page whitespace
fix url of upload breadcrumbs
2023-07-15 22:08:38 -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ı
796730dc54 test no escape on canonical 2023-07-10 16:20:06 -04:00
Barış Soner Uşaklı
7c588fe9a3 test no escape on canonical 2023-07-10 16:13:26 -04:00
Barış Soner Uşaklı
0ff1f82b5c make meta desc 160 chars 2023-07-08 14:55:29 -04:00
Barış Soner Uşaklı
9044e10e64 change description length to 160 2023-07-07 00:38:30 -04:00
Barış Soner Uşaklı
f367d65a03 remove timeagoCutoff=1 2023-07-02 17:26:58 -04:00
Barış Soner Uşaklı
4045681aa7 fix: add ?page= to canonical urls
#11770
for spiders to use pagination
2023-06-30 20:51:03 -04:00
Barış Soner Uşaklı
daa5ac85e9 refactor: show both emails in user list
if user has a confirmed email and a pending email change show both in the acp
2023-06-26 20:33:28 -04:00
Barış Soner Uşaklı
cc1672882c add the pending email so it is displayed in acp 2023-06-26 12:27:21 -04:00
Barış Soner Uşaklı
2386c8e0bf Merge branch 'master' into develop 2023-06-26 09:22:50 -04:00
Barış Soner Uşaklı
e45f513bfe fix: #11756, fix unique visitor stats in acp table 2023-06-26 09:03:29 -04:00
Barış Soner Uşaklı
d549d07381 remove await 2023-06-23 14:35:51 -04:00
Barış Soner Uşaklı
4b11cd0da5 feat: closes #11747, add pagination to tokens page 2023-06-22 23:38:57 -04:00
Barış Soner Uşaklı
c21d7dbc7e fix: dont overwrite postIndex
if its not on the current page
2023-06-22 22:26:08 -04:00
Barış Soner Uşaklı
cbd98c1b28 fix: closes #11731, set postIndex on pagination 2023-06-22 21:16:11 -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ı
0f29ae5568 Merge branch 'master' into develop 2023-06-16 20:30:55 -04:00
Barış Soner Uşaklı
4e146eb50b fix: #11723, fix pagination on following/follower page 2023-06-16 20:30:44 -04:00
Barış Soner Uşaklı
556fd65d51 feat: custom skins panel in acp 2023-06-16 18:04:22 -04:00
Barış Soner Uşaklı
304f9b6eef remove ?page when changing filters 2023-06-15 09:58:02 -04:00
Barış Soner Uşaklı
1a5e18cd37 feat: #11714, add page title 2023-06-15 09:20:00 -04:00
Barış Soner Uşaklı
73c808683f only load postData for main post 2023-06-14 22:12:37 -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ı
6740a51edf fix: #11702, don't escape backgroundImage twice 2023-06-12 11:39:48 -04:00
Barış Soner Uşaklı
2edfe0ef3e feat: bring back noskin option
if forum sets a default skin there was no way for the user to go back to the no skin version
2023-06-10 11:55:59 -04:00
Barış Soner Uşaklı
5fae09f3aa feat: add not validated/expired 2023-06-06 20:55:52 -04:00
Barış Soner Uşaklı
5adc418fef manage ip address dropdown 2023-06-06 16:58:39 -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ı
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ı
5daaa5ea78 fix: edge case in category filter
selecting a category and then clicking on all categories was breaking selection icons
2023-05-18 13:44:59 -04:00
Barış Soner Uşaklı
adf14ea57c fix: browser title if options.title is undefined 2023-05-16 13:05:03 -04:00