Commit Graph

81 Commits (e9fd49e234db2010bfc4a4b3570c80f809f9745d)

Author SHA1 Message Date
Barış Soner Uşaklı 0d047f4eb9 feat: , webserver
Barış Soner Uşaklı 7b95ebbb6a fix: , if reputation system is disabled, dont check min reputation
Julian Lam 91f0bce628 fix: , default open state on stateless flags
Barış Soner Uşaklı 81aa3a0b8a fix: don't crash in flags.validate if user blocked target
Julian Lam d027207f88 fix: flags detail page crash if reporter blocks author
Fixed an issue where the flags detail page would crash if the
reporting user flagged a post and then proceeded to block the
post author.

Retrieval of a flag's target data should be irrespective of
block status.

fixes 
Barış Soner Uşaklı f3a679e268 remove parseInts
Barış Soner Uşaklı 9c022afae1
Parse int ()
* 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
Barış Soner Uşaklı dff86b1ac9 closes
* flag notifications will go to the flag details page instead of the post or user that was flag
* if you assign a flag to yourself you won't get a notification about it
@benlubar
Julian Lam 2ce6a85756 properly closes
Julian Lam ed9dc113b0 sanitizing notes in flags details page, fixes
Barış Soner Uşaklı b7f5995aab closes
Julian Lam 7ba2ac9f69 Merge remote-tracking branch 'origin/master' into develop
Barış Soner Uşaklı bb13c4948d closes
Barış Soner Uşaklı 0070f5c1b2 Merge remote-tracking branch 'refs/remotes/origin/master' into develop
Julian Lam e8d4fe3209 Revert "closes #6380"
Turns out the issue was a malformed flag object, and not anything
code-wise

This reverts commit 956c5a2a32.
Julian Lam 956c5a2a32 closes
Baris Usakli 29b7c67946 use utils.toISOString
Baris Usakli a48144e632 dont crash if description is numeric
Julian Lam a126f07471 closes
Barış Soner Uşaklı 2983fc3e5e get group names first
Barış Soner Uşaklı bb9528b82e closes
Barış Soner Uşaklı 7f67528280 change parallel to series in flag creation
Barış Soner Uşaklı 72140e5338 closes , closes
Baris Usakli a19537dc25 closes
Barış Soner Uşaklı dd176dd5f2
Notification delivery ()
* ability for users to choose how they receive notifications

add type field to more notifications, the type field is used to
determine what to do based on user
setting(none,notification,email,notificationemail)

* change var name to types

* cleanup

* add event types for privileged users

* remove unused language keys

* fix uids check

* changed if statements

* upgrade script to preserver old settings
Barış Soner Uşaklı 67bc58f04c wait for state to be updated
Peter Jaszkowiak e609e497b3 Provide more error information to logs
Provides full stack instead of just message
Peter Jaszkowiak 46fafb20b9 Remove string.js dependency
Julian Lam b44cfacda1 resolve XSS vulnerability in flags pages
Peter Jaszkowiak da9da8190f Bump dependencies
Bumping eslint & configs meant making some linting fixes

For future reference, the `xmlhttprequest-ssl` library must be of equal versioning to the one in `engine.io-client`, otherwise it won't be deduped which causes the socket.io tests to fail
Julian Lam 932b3f06a5 closes
Julian Lam f4fb9ee04b adding filter hooks for flag list and retrieval
Peter Jaszkowiak 3c2d4fe649 Switch from underscore to lodash
Barış Soner Uşaklı 8e31ec7199 closes
Barış Soner Uşaklı 3d1b1a9423 closes
Barış Soner Uşaklı 8920523e06 more tests
Julian Lam 71137dbf43 pass reputation to flag reporter payload as well
Barış Soner Uşaklı 5a9b7b673a closes
Barış Soner Uşaklı 5c005bbbdf use bind
Barış Soner Uşaklı 1b6d96dde7 on post flag increment zset
Julian Lam f2653cd380 broader error handling for empty notif creation return
Julian Lam c805d55b85 creating notification for flag assignment
barisusakli 5a2ff8ed0a closes
Julian Lam 6e7b505ea7 more linting
Julian Lam ddea9f534e running eslint again
Julian Lam 10f270d016 adding byPid zset for flags
Julian Lam bef3da5b48 pass flagId into flag.update hook
Julian Lam 6c04e393b5 fire hooks for flag update
Julian Lam 541f51e947 restrict flags interface so that moderators only see flags from cids they can actually moderate
Julian Lam 283ae564f2 removing incorrect parseInt