Commit Graph

126 Commits

Author SHA1 Message Date
Julian Lam
9942c248eb feat(writeapi): post voting 2020-10-08 15:33:10 -04:00
Julian Lam
414169fdfa feat(writeapi): post delete/restore/purge 2020-10-08 15:33:10 -04:00
Julian Lam
f66c2fb60f feat(writeapi): post editing 2020-10-08 15:33:10 -04:00
Barış Soner Uşaklı
ed092bf6b5 refactor: remove posts.tools.purge
moved the check to socketPosts.purge
2020-10-06 14:03:59 -04:00
Julian Lam
7e7366be13 fix: remove toolsVisible in post tools' menu [breaking] 2020-09-11 11:11:58 -04:00
Julian Lam
f743f92088 refactor: socket posts delete/restore/purge so tid is not necessary (#8607)
* refactor: socket posts delete/restore/purge so tid is not necessary

* refactor: stop trying to be fancy

* fix: tests to not pass in tid into posts.deletePosts

* fix: some more unnecessary tid passing
2020-09-02 21:51:35 -04:00
Julian Lam
fcdbdf63a3 refactor: flags object in post tools 2020-07-30 09:53:16 -04:00
Julian Lam
c705e08a76 feat: allow direct link to flag from post tools, #8531 2020-07-29 16:55:18 -04:00
Barış Soner Uşaklı
c718b7293e feat: #3783, min/max tags per category 2020-06-24 16:02:57 -04:00
Julian Lam
f909ed2541 feat: show editor in post diffs if available 2020-06-15 17:16:44 -04:00
Julian Lam
b3115ea813 fix: #8410 2020-06-15 15:43:28 -04:00
Julian Lam
58b3d608fc feat: allow post diffs to be restored, #8406 2020-06-15 11:03:04 -04:00
Barış Soner Uşaklı
d77036dbd1 fix: #8249, don't send move notifications for deleted posts/topics 2020-04-13 09:52:18 -04:00
Barış Soner Uşaklı
0ae1eb4f6e fix: missing await in SocketPosts.changeOwner 2020-01-24 14:28:27 -05:00
Opliko
740de034fa #8115 - log post owner changes (#8117)
* log post owner changes

* log each post separately

* use map instad of a loop
2020-01-15 11:05:57 -05:00
Opliko
b9583ed838 Add privilege for accessing user information (#7859)
* Add view users info global privilege

* Show user ip only to global mods and admins

* fix missing comma

* Hide link for users without correct privilege

* move getting privilege information to getAllData

* Hide the link from Global Moderators as well

* Give Global Moderator view:users:info privilege

* Restrict ip in post menu to view:users:info

* add some trailing commas....

* Add privilege to categories test

* Add group privilege to categories test

* add upgrade script

* fix style for TravisCI

* more styling - change spaces to tabs

* some more styling fixes (hopefully final one)

* fix style for Travis CI

* hide ip in chat messages

* Don't show even hidden ips on user profile page
2019-09-17 14:02:52 -04:00
Barış Soner Uşaklı
a4d84a66dd refactor: remove dupe code 2019-09-09 19:34:20 -04:00
Barış Soner Uşaklı
e93ef0d7fd refactor: async/await socket.io/posts 2019-09-09 19:19:56 -04:00
Barış Soner Uşaklı
46639be32d fix: add flag for change post owner 2019-07-13 23:51:18 -04:00
Barış Soner Uşaklı
53e1b349ae Change post owner (#7752)
* feat: #7749, allow array of keys for setObject

* feat: sortedSetRemoveBulk

* feat: test for bulk remove

* feat: #7083, ability to change post ownership

* feat: #7083, fix tid:<tid>:posters

* feat: #7083, front end

* fix: #7752, psql methods

* fix: add missing await

* fix: maybe psql
2019-07-12 14:06:09 -04:00
Baris Usakli
3a7e99a503 fix: tests 2019-05-10 12:59:48 -04:00
Baris Usakli
bd94fbc2b1 feat: let theme know downvoting is disabled, closes https://github.com/NodeBB/NodeBB/pull/7568
dont load downvote data if downvoting is disabled
2019-05-10 12:41:56 -04:00
Barış Soner Uşaklı
f3a679e268 remove parseInts 2018-10-25 17:02:59 -04:00
Baris Usakli
a228dc2de9 closes #6797 2018-10-23 17:50:44 -04:00
Barış Soner Uşaklı
9c022afae1 Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
b033d6f115 add tid to post-purge event 2018-10-04 12:18:11 -04:00
Barış Soner Uşaklı
d1491feed9 add tid to topic rename and post delete restore events 2018-10-03 19:16:32 -04:00
Julian Lam
545e678e8a fixes #6726 2018-08-30 15:08:01 -04:00
Julian Lam
9e90d1ea5d closes #6557 2018-06-11 16:45:25 -04:00
Julian Lam
99dc3feeb2 Edit history is now a category-level privilege
Closes #6425
2018-06-07 14:00:51 -04:00
Barış Soner Uşaklı
779d03cf57 move timestamp to server 2018-06-06 16:21:48 -04:00
Barış Soner Uşaklı
908b77fe28 closes #6250 2018-06-03 15:44:48 -04:00
Barış Soner Uşaklı
caf43e3025 closes #6358 2018-04-03 14:20:07 -04:00
Julian Lam
a86d91a552 wrapping up post history work 2018-02-16 21:22:55 -05:00
Julian Lam
c1fef4561b showing history state in post tools load 2018-02-16 18:31:50 -05:00
Julian Lam
501fc3cee9 WIP post diffs 2018-02-16 18:29:19 -05:00
Barış Soner Uşaklı
15e9bbac92 closes #6311 2018-02-15 14:52:49 -05:00
Barış Soner Uşaklı
71895f3736 closes #6079 2017-11-23 14:19:26 -05:00
Peter Jaszkowiak
74ceb78800 Upvote notification frequency selection (#6087)
Closes #5963

- Notify on every upvote
- Notify on every tenth upvote
- Notify logarithmically (on 10, 100, 1000...)
- Disable upvote notifications
2017-11-21 14:14:14 -05:00
Peter Jaszkowiak
46fafb20b9 Remove string.js dependency 2017-10-13 21:02:41 -06:00
Barış Soner Uşaklı
5344edc2a7 closes #5885 2017-08-18 20:08:19 -04:00
Julian Lam
28d8be8b9d fixed #5782 2017-06-28 11:20:57 -04:00
Peter Jaszkowiak
3c2d4fe649 Switch from underscore to lodash 2017-05-27 14:51:45 -06:00
Barış Soner Uşaklı
3d1b1a9423 closes #5706 2017-05-26 23:21:46 -04:00
Barış Soner Uşaklı
f6ac92111b style changes 2017-05-26 00:02:20 -04:00
Barış Soner Uşaklı
3a1eba2537 merge 2017-05-08 13:49:35 -04:00
Barış Soner Uşaklı
6fb90a17e0 closes #5613 2017-05-01 21:38:03 -04:00
Barış Soner Uşaklı
7a6b685aa0 if the main and last post is purged, purge the topic as well 2017-04-26 14:19:48 -04:00
barisusakli
e3205bcfad merge 2017-04-16 14:26:12 -04:00
Peter Jaszkowiak
e382bca610 Fix tests 2017-04-15 04:22:28 -06:00