Commit Graph

128 Commits

Author SHA1 Message Date
Julian Lam
0e1006fb3b test: fix remoteUrl property generation, tests for topic moving 2025-03-11 14:19:08 -04:00
Julian Lam
e1db9642c2 fix: add sourceContent prop to posts API; fix other tests 2025-01-07 14:44:21 -05:00
Julian Lam
51fd65abc8 refactor: add thumbsOnly option to thumbs retrieval method so that embeds/attachments don't show up in composer thumbnail modal 2024-12-17 11:14:29 -05:00
Julian Lam
c0e58b03c5 Merge remote-tracking branch 'origin/develop' into activitypub 2024-11-26 11:34:18 -05:00
Barış Soner Uşaklı
49e0e1ab2d feat: add pagination to groups page, api routes
use page instead of after
2024-11-24 11:36:02 -05:00
Julian Lam
9357e71898 refactor: standardization; onNewPost internal method to return a superset of post summary
... so as to not require an additional call in internal topics API to call post summary again for a standardized response
2024-09-05 11:42:05 -04:00
Julian Lam
ba2c3fcef4 Merge remote-tracking branch 'origin/develop' into activitypub 2024-09-04 14:38:50 -04:00
Barış Soner Uşaklı
46950e287d Merge branch 'master' into develop 2024-09-04 11:31:50 -04:00
Barış Soner Uşaklı
be32cf4404 test: since admin pwd changes in test, login with new pwd 2024-08-23 10:38:31 -04:00
Barış Soner Uşaklı
df6062d8be Merge branch 'develop' into activitypub 2024-08-21 12:57:10 -04:00
Julian Lam
2d14a79854 feat: migrate topic move socket call to api v3 2024-08-15 13:28:57 -04:00
Barış Soner Uşaklı
8971bba53d Merge branch 'develop' into activitypub 2024-07-25 11:26:29 -04:00
Barış Soner Uşaklı
269fc06835 feat: add downvoteVisibility setting, closes #12698 2024-07-17 17:43:31 -04:00
Julian Lam
a81ef60930 feat: icon replacing user status for remote users, denoting that they are from outside the local instance, #12688 2024-07-11 13:16:47 -04:00
Julian Lam
4b86b37889 fix: openapi spec for v3 posts get 2024-06-19 18:08:49 -04:00
Julian Lam
4b8a9e58ae fix: category follow schema test 2024-06-17 14:47:00 -04:00
Barış Soner Uşaklı
c021e7e80f refactor: announces
store number of announces on post hash, show announces like votes, with tooltip and a way to see all, remove them from topic.events so they dont load all tid:<tid>:posts everytime topic is loaded
2024-06-17 11:18:48 -04:00
Barış Soner Uşaklı
119230d7ec Merge branch 'develop' into activitypub 2024-06-06 13:18:12 -04:00
Barış Soner Uşaklı
1aaa6cbbc5 feat: add voters/upvoters v3 routes
closes #12423
2024-05-31 11:45:41 -04:00
Julian Lam
b7ad4317cc fix: have category sync routes return full api response, openapi schema for that pair of routes 2024-04-29 11:45:40 -04:00
Julian Lam
2a58d0996d fix: use reference object for post summary v3 api call 2024-04-26 14:11:36 -04:00
Julian Lam
c1e6be7705 refactor(socket.io): deprecate SocketModules.chats.typing in favour of api.chats.toggleTyping 2023-11-20 13:06:26 -05:00
Julian Lam
401e8636bd refactor(socket.io): deprecate SocketModules.chats.loadPinnedMessages in favour of api.chats.getPinnedMessages" 2023-11-20 13:06:26 -05:00
Julian Lam
f9dc35021d refactor(socket.io): deprecate SocketModules.chats.searchMessages in favour of api.search.roomMessages 2023-11-20 13:06:26 -05:00
Julian Lam
75c8cda18c refactor(socket.io): deprecate SocketModules.chats.setNotificationSetting in favour of api.chats.watch 2023-11-20 13:06:26 -05:00
Julian Lam
b13c6ee431 refactor(socket.io): deprecated SocketModules.chats.toggleOwner in favour of api.chats.toggleOwner 2023-11-20 13:06:26 -05:00
Julian Lam
6e952263d1 refactor(socket.io): deprecated SocketModules.chats.searchMembers in favour of api.search.roomUsers 2023-11-20 13:06:26 -05:00
Julian Lam
62b7dfd400 refactor(socket.io): deprecate SocketModules.sortPublicRooms in favour of api.chats.sortPublicRooms 2023-11-20 13:06:26 -05:00
Julian Lam
5eaffb422c refactor(socket.io): deprecate SocketModules.chat.getUnreadCount in favour of api.chats.getUnread 2023-11-20 13:06:26 -05:00
Julian Lam
214989a8c1 refactor(socket.io): deprecate SocketModules.chats.getIP in favour of api.chats.getIpAddress 2023-11-20 13:06:26 -05:00
Julian Lam
0d3c94e6bb refactor(socket.io): deprecate SocketModules.chats.hasPrivateChat in favour of api.users.getPrivateRoomId 2023-11-20 13:06:26 -05:00
Julian Lam
a4133500fe refactor(socket.io): deprecate SocketModules.chats.canMessage and .markAllRead with no alternative. deprecate .getRecentChats in favour of api.chats.list 2023-11-20 13:06:26 -05:00
Julian Lam
eebea4df2e refactor(socket.io): deprecate SocketModules.chats.isDnD in favour of api.users.getStatus 2023-11-20 13:06:26 -05:00
Julian Lam
c4b4e79b28 refactor(socket.io): deprecate SocketModules.chats.getRaw in favour of api.chats.getRawMessage 2023-11-20 13:06:26 -05:00
Julian Lam
dc4cc74fbd refator(socket.io): deprecate socketGroups.getChatGroups in favour of api.admin.listGroups 2023-11-09 11:53:17 -05:00
Julian Lam
807d778c77 refactor(socket.io): deprecate socketGroups.loadMoreMembers in favour of api.groups.listMembers 2023-11-09 11:53:17 -05:00
Julian Lam
d2f3333af0 refactor(socket.io): deprecate socketGroups.searchMembers in favour of api.groups.listMembers 2023-11-09 11:53:17 -05:00
Julian Lam
b61e814787 refactor(socket.io): deprecate socketGroups.loadMore in favour of api.groups.list 2023-11-09 11:53:17 -05:00
Julian Lam
f8cc8548bb docs: fix improper verbiage in category watch schema 2023-11-03 10:41:53 -04:00
Julian Lam
4ffe041732 docs: openapi schema for api.search.categories 2023-10-31 11:32:07 -04:00
Julian Lam
1ce4ca54da refactor(socket.io): deprecate categories.loadMore in favour of api.categories.getTopics 2023-10-31 11:32:07 -04:00
Julian Lam
5399e86af1 docs(socket.io): openapi schema for remaining added routes 2023-10-31 11:32:07 -04:00
Julian Lam
f279bca038 docs(socket.io): added schema for new routes 2023-10-31 11:32:07 -04:00
Julian Lam
e012edea3b feat: flag rescinding logic + api method 2023-10-12 10:23:30 -04:00
Barış Soner Uşaklı
40d290c1a9 Tag follow (#12041)
* feat: tag follow

* on tag delete remove it from following users

* feat: on tag rename update user followed tags

and move the

* add new filter on /notifications

* feat: openapi updates

* chore: up themes

* chore: up peace

* refactor: remove unused title
2023-09-27 10:57:00 -04:00
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ı
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ı
54706b1182 ability to pin chat messages (#11964) 2023-08-28 15:57:30 -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
Julian Lam
4f524e9f94 feat: token rolling API for admins
+ tests
2023-05-11 15:22:50 -04:00