Commit Graph

1838 Commits

Author SHA1 Message Date
Julian Lam
fa01801f64 fix: don't throw on invalid session, just return early so socket is not opened.
Also updated the plugin hook call to `static:sockets.validateSession` to not return a result, because in static calls that result is always null anyway
2021-12-02 14:13:20 -05:00
Barış Soner Uşaklı
8117b7f22f breaking: remove deprecated post diff socket calls 2021-11-28 19:45:29 -05:00
Barış Soner Uşaklı
6dcdf1d342 breaking: remove setTopicSort/setCategorySort 2021-11-23 18:45:30 -05:00
Barış Soner Uşaklı
a7d1dfb65c breaking: remove deprecated socket user create/delete functions
add missing tests
2021-11-23 18:02:44 -05:00
Barış Soner Uşaklı
c93d7fdbdd breaking: remove deprecated uploads.delete 2021-11-23 15:16:41 -05:00
Barış Soner Uşaklı
79de48c57f breaking: remove deprecated methods 2021-11-23 13:21:18 -05:00
Barış Soner Uşaklı
c5f08fdc81 breaking: remove socket.io/flags.js
refactor: helpers.loginUser returns a single object {jar, csrf_token}
2021-11-22 19:23:51 -05:00
Barış Soner Uşaklı
fb363957d1 refactor: tab rules 2021-11-18 16:42:18 -05:00
Barış Soner Uşaklı
047f031dd7 fix: #10006, dont allow new rooms or adding to a room if target is blocked 2021-11-16 11:57:00 -05:00
Barış Soner Uşaklı
258f368e32 refactor: add filter:topic.getPosts
this hook only fires when loading the posts of a topic cold load + infinite scroll
do not remove posts if they have index =-1
use topics.getTopicPosts instead of getMainPostAndReplies
2021-11-15 18:08:09 -05:00
Barış Soner Uşaklı
8750ee04a6 refactor: make a single call to set widgets per template 2021-11-10 20:40:34 -05:00
Barış Soner Uşaklı
80f9963bed refactor: remove jshint, remove async.parallel 2021-11-10 20:19:13 -05:00
Barış Soner Uşaklı
61d1f56500 test: socket.emit doesnt exist in tests 2021-11-09 10:51:44 -05:00
Barış Soner Uşaklı
8c67031609 feat: show posts previews if enabled on mouse over 2021-11-01 15:09:05 -04:00
Julian Lam
0ee85d5a0b fix: #9950, rename account export routes to remove uid/ prefix 2021-10-29 14:12:14 -04:00
Barış Soner Uşaklı
64192731a0 refactor: use search api for topic search 2021-10-25 23:12:34 -04:00
Barış Soner Uşaklı
1783f918bc fix: guard against prototype pollution 2021-10-25 13:17:33 -04:00
Barış Soner Uşaklı
e62948f73d fix: there is no alltime digest, fixes translation in test email
there is no digest.title.alltime
2021-10-25 10:44:04 -04:00
Barış Soner Uşaklı
b91ae0880d feat: add method name to deprecation message 2021-10-21 15:40:42 -04:00
gasoved
b0a24d6dd5 refactor: var to const and let (#9885)
* refactor: var to const and let

* fix: missed global bootbox usage

* refactor: align with eslint expectations
2021-10-12 10:26:18 -04:00
Baris Usakli
997fb2b348 refactor: remove unused code 2021-10-08 15:16:17 -04:00
Barış Soner Uşaklı
5aea6c6aa1 feat: #9855, allow uid for post queue notifications 2021-10-03 15:05:30 -04:00
Barış Soner Uşaklı
4404e81991 fix: switch inf. scroll to xhr (#9854)
this fixes infinitescroll when url has custom query parameters
also fixes infinitescroll for plugins like QnA
fixes infinitescroll on tags page
deprecate topics.loadMoreSortedTopics
deprecate topics.loadMoreFromSet
2021-10-02 13:35:58 -04:00
Barış Soner Uşaklı
f8d4ec6ca6 fix: psql test 2021-09-24 19:58:10 -04:00
Barış Soner Uşaklı
89af00d1d5 fix: #9827, fix reward duplication 2021-09-22 23:56:34 -04:00
Barış Soner Uşaklı
2657804c1f fix: #9790, fix sorting of more than one page of pinned topics 2021-09-11 17:57:42 -04:00
Barış Soner Uşaklı
71ed50b9c1 fix: #9800, don't send all welcome test emails to test@example.org @julianlam 2021-09-11 13:11:11 -04:00
Julian Lam
cdaea61136 fix: handle missing uid in deprecated socket call 2021-09-03 16:59:42 -04:00
Julian Lam
0a41741b7e refactor: deprecate picture update socket call, new API routes for picture update 2021-09-03 16:59:42 -04:00
Julian Lam
e33e046f15 fix: use privileges.users.canEdit for image upload priv check 2021-09-03 16:59:42 -04:00
gasoved
61f02f17d8 feat: column based view on wide priv. tables (#9699)
* feat: column based view on wide priv. tables

* fix: add group/user

* feat: copy buttons to work on visible privs

* feat: show what's being copied in modal

* feat: optional title and message for category selector modal
2021-08-30 10:42:58 -04:00
Barış Soner Uşaklı
e59d357533 feat: als (#9749)
* feat: als

* fix: up test timeout

* fix: don't overwrite caller if it already exists

* fix: up test timeout for psql
2021-08-30 10:23:38 -04:00
Barış Soner Uşaklı
0c81642997 fix: #9681, update posts in queue if target tid is merged 2021-07-30 22:51:06 -04:00
Julian Lam
3bcd1f1438 fix: email validation flow, so that it actually works, fixed event logging bug, new email verification template 2021-07-30 13:29:13 -04:00
Julian Lam
69c96dd23c refactor(emails): more work in update email interstitial, interstitial skipping, email change on confirmation, deprecation of requireEmailConfirmation 2021-07-30 13:29:13 -04:00
Julian Lam
12b2a979a0 feat: removal of emailExists socket listener 2021-07-30 13:29:13 -04:00
Julian Lam
ef4e74bfc8 refactor: client-side to use flag notes API 2021-07-16 13:51:54 -04:00
Julian Lam
cc6cbfcdc4 Flags API (#9666)
* feat: new routes for flags API

+ flag get
+ flag creation, migration from socket method
+ flag update, migration from socket method
* fixed bug where you could not unassign someone from a flag

* feat: tests for new flags API

added missing files for schema update

* fix: flag tests to use Write API instead of sockets

* feat: flag notes API + tests

* chore: remove debug line

* test: fix breaking test on mongo
2021-07-16 13:44:42 -04:00
Barış Soner Uşaklı
4a56388ec3 feat: store topic tags in topic hash (#9656)
* feat: store topic tags in topic hash

breaking: remove color info from tags (use css)

* fix: remove unused tag modal

* fix: tag search
2021-07-12 19:25:04 -04:00
Julian Lam
e03782f218 fix(docs): #9648 2021-07-07 09:33:26 -04:00
Barış Soner Uşaklı
1bf263c4a2 9622 (#9625)
* fix: #9622

dont allow regular user to remove system tags

* refactor: add guest/spider check to isPrivileged

string/trim tag
2021-06-22 12:21:52 -04:00
Barış Soner Uşaklı
84e065752f fix: #9622 (#9623)
dont allow regular user to remove system tags
2021-06-22 11:09:32 -04:00
gasoved
8168c6c407 fix: purge uploaded images accordingly #9606 (#9611)
* fix: purge uploaded images accordingly

* fix: tests

* fix: relative paths
2021-06-18 09:21:23 -04:00
Julian Lam
f6c14d6b62 fix: introduce artificial delay + delay fudging on invalid email during reset token generation 2021-06-11 14:47:13 -04:00
Barış Soner Uşaklı
8c952aa381 fix: lint 2021-06-11 09:57:40 -04:00
Barış Soner Uşaklı
be19f27f40 feat: add filter:categories.categorySearch 2021-06-11 09:47:23 -04:00
Mats
2b42e7edb0 chore: lint 2021-06-07 10:54:07 -04:00
Mats
6f73261186 fix: extra ')' 2021-06-07 10:54:07 -04:00
Mats
d07229aa6b chore: fix indentation 2021-06-07 10:54:07 -04:00
Mats
edcba61aa9 fix: disallow editing of other users' notes
Feel free to close this if it is intentional, but as you are not allowed to delete other users notes I expect you shouldn't be able to edit them. Editing another users post also changes ownership, allowing you to then delete it.

I also added `error:` to the errormessage so that they display properly.
2021-06-07 10:54:07 -04:00