Commit graph

17 commits

Author SHA1 Message Date
byte[]
7000be9865 add parameter recoder to api tag controller 2019-12-31 23:22:35 -05:00
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
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[]
dd5d553c0d include intensity data in image api response 2019-12-30 09:18:38 -05:00
byte[]
620f316db8 break compile time dependencies for elasticsearch index usage 2019-12-24 16:14:42 -05:00
byte[]
15864ab742 api search controllers 2019-12-24 03:26:06 -05:00
byte[]
02b7fdec31 convert rows to json 2019-12-16 18:14:22 -05:00
byte[]
f8aa0a68df add total back to search api 2019-12-08 10:03:29 -05:00
byte[]
caaeb3ad2e add parameter recoder 2019-12-08 01:00:53 -05:00
byte[]
2c8a5fd43d add api tag controller 2019-12-08 00:04:45 -05:00
byte[]
19174a31ba conn no longer necessary 2019-12-05 17:57:17 -05:00
byte[]
d5c438acdc point provider url at the correct page 2019-12-05 17:56:20 -05:00
byte[]
8b6fef83e2 better tag info row 2019-12-05 16:57:59 -05:00
byte[]
d43c9cbcf4 add opengraph meta 2019-12-03 20:56:39 -05:00
byte[]
50880ba888 oembed api 2019-12-03 20:27:58 -05:00
byte[]
12fb45170c api changes 2019-12-03 19:50:23 -05:00