Commit graph

838 commits

Author SHA1 Message Date
SomewhatDamaged
9b22d2719a Adding /api/v1/json/comment/:id endpoint (#13)
* Add `/api/v1/json/comment/:id` endpoint

* Add controller for `/api/v1/json/comment/:id`

Add controller for `/api/v1/json/comment/:id` endpoint

* Fixes permissions

Now will show `403 forbidden` if a comment on a deleted image is requested.

* Fixed endpoint schema

Now conforms to endpoint schema

* Permission adjustment

Will prevent `user_id` and `author` from leaking in the event the image is `hidden_from_users`

* Permission lockout

Lockout of all data if destroyed.

* Lockout on destroyed_content

Return 404 when `comment.destroyed_content`

* Refactored for neatness
2019-12-31 18:25:11 -05:00
byte[]
f8f34c8245 update sort fields list 2019-12-31 17:21:06 -05:00
byte[]
4c82c90cea discard old parser 2019-12-31 14:56:38 -05:00
SomewhatDamaged
6ccb3f645a Corrects failure and redirect to main page (#12)
This stops a bug I noticed when a slug that doesn't match is given. This will correctly 404 rather than redirecting to front page.
2019-12-31 09:01:14 -05:00
byte[]
f5bd8e7614 add deletion/duplicate handling to api 2019-12-31 00:10:50 -05:00
byte[]
3d629bf157 add at sign to link ending characters 2019-12-31 00:01:51 -05:00
byte[]
1c6387e847 further fixes to the dnp template 2019-12-30 23:03:44 -05:00
Nebbie Zebbie
5ee81ea85e Fix tag search so that it's preserved across pages 2019-12-31 01:23:04 +00:00
byte[]
45048d5015 validate that emails look like emails 2019-12-30 19:07:02 -05:00
byte[]
a5966ae287 allow admins to create dnp entries on arbitrary tags 2019-12-30 19:04:19 -05:00
byte[]
7503e48591 show hidden links on tag page, hidden status on profile page 2019-12-30 18:56:29 -05:00
byte[]
210aff26ab show image id in duplicate report cells 2019-12-30 18:39:02 -05:00
byte[]
b18a1370a5 reject associated duplicate reports when deleting 2019-12-30 18:37:41 -05:00
byte[]
31b1704847 mark image as generating thumbnails when replaced or repaired 2019-12-30 18:34:59 -05:00
byte[]
982adb9ba5 reindex image after replacement 2019-12-30 18:33:20 -05:00
byte[]
0c7f13932b add deleted toggle to main search form 2019-12-30 18:32:24 -05:00
byte[]
907e030b3a break compile time dependencies in schema helpers 2019-12-30 16:22:24 -05:00
byte[]
f278362fda break compile time dependencies inside the search parser 2019-12-30 16:14:57 -05:00
byte[]
0f3cb295a3 break compile time dependencies in query compilers 2019-12-30 16:02:25 -05:00
byte[]
5163da171b allow the parser to determine the right type for the default field 2019-12-30 14:49:55 -05:00
byte[]
dd5d553c0d include intensity data in image api response 2019-12-30 09:18:38 -05:00
byte[]
330e4ffb26 award overflow 2019-12-30 09:05:17 -05:00
byte[]
9be71b512d load comment replies when the comment is hidden and when the image is merged 2019-12-30 08:58:56 -05:00
byte[]
aacd3e31b7 don't allow duplicate reports to have identical source and target 2019-12-30 08:42:00 -05:00
byte[]
bf5158b60e poll votes admin 2019-12-30 08:32:41 -05:00
byte[]
2427d8d87c suppress diff table if reports list is empty 2019-12-30 07:55:59 -05:00
byte[]
4342978483 hides, vote tampering 2019-12-30 07:50:02 -05:00
byte[]
dfaee1e34d mask ip6 spec to /64 2019-12-30 07:36:23 -05:00
byte[]
38c4e35bb7 bans view changes 2019-12-30 07:30:39 -05:00
byte[]
9ed5652aad Break precedence for newlines 2019-12-30 07:18:49 -05:00
byte[]
fa2024764c change failure rules 2019-12-29 20:39:30 -05:00
byte[]
9b4cefa642 fix wrong recursion rule and allow / at link ends 2019-12-29 20:28:12 -05:00
byte[]
0310c733e7 second one 2019-12-29 00:20:17 -05:00
byte[]
ae651fd204 fix seeds 2019-12-29 00:12:23 -05:00
byte[]
7a4d47db2f more aggressively prevent intraword markup matches 2019-12-28 14:43:00 -05:00
byte[]
ed40f5a35a actually allow closing markup to match 2019-12-28 13:13:50 -05:00
byte[]
92e7a8bf17 additionally forbid opening markup to come before a space 2019-12-28 13:07:32 -05:00
byte[]
92f2a45df6 even more precedence 2019-12-28 12:58:05 -05:00
byte[]
f6e22e20a5 precedence 2019-12-28 12:07:06 -05:00
byte[]
5c7d21e397 fix for excessively slow vp8 encoding and tag bug 2019-12-28 10:47:04 -05:00
byte[]
8ce960a796 more parser fixes 2019-12-28 10:15:24 -05:00
byte[]
45856effab deploy stub 2019-12-27 23:40:10 -05:00
byte[]
c8f9b63556 self closing img tag 2019-12-27 23:37:17 -05:00
byte[]
7f0ac2f68f fix tokenization rules for links 2019-12-27 23:35:43 -05:00
byte[]
41ea1f6b71 fix first_seen_at propagation 2019-12-27 23:27:37 -05:00
Joey
901e930a8e Readme: Add default URL and credentials, add troubleshooting section, add notes about Docker on Windows 2019-12-27 21:40:47 -06:00
byte[]
a352a0cc0a remove debug code 2019-12-27 22:04:05 -05:00
byte[]
8cb1bd3847 rewrite it again 2019-12-27 21:35:02 -05:00
byte[]
1225aced41 load tags before body is processed 2019-12-26 18:58:52 -05:00
byte[]
54ed9b5c43 fix gallery navigation again 2019-12-26 18:00:44 -05:00