Commit graph

939 commits

Author SHA1 Message Date
Nebbie Zebbie
19dfe17a58 Revert "Prepopulate q on reports pagination"
Apparently in this place, empty q param is desired. This reverts commit 932eff86cd.
2020-03-10 23:14:16 +00:00
Nebbie Zebbie
da7982d2dd Preserve commission map parameter in commission search 2020-03-10 23:03:58 +00:00
Nebbie Zebbie
932eff86cd Prepopulate q on reports pagination 2020-03-10 22:55:15 +00:00
Nebbie Zebbie
d69410d97e Prepopulate rq on reports pagination 2020-03-10 22:47:18 +00:00
byte[]
37a2d014cd fix permission error 2020-03-05 02:04:21 -05:00
Luna D
67ac0318f7
this check seems redundant 2020-03-03 15:38:59 -05:00
Luna D
bd768088c2
static pages permission 2020-03-03 14:29:14 -05:00
Luna D
8378e07bb8
remove auth from notification read 2020-03-03 13:54:47 -05:00
Luna D
bb4cbdb089
Merge pull request #42 from derpibooru/Damaged-API-user-profiles
This will add the  endpoint to the API.
2020-03-03 12:29:23 +01:00
Byron Mulvogue
7a164944b4 Fixed user.avatar failure. Ran mix format. 2020-03-03 11:23:53 +00:00
Luna D
22dfb51e56 mix format 2020-03-03 11:43:54 +01:00
Byron Mulvogue
0ae05b97b2 Forgot to prepend to the avatar_url path 2020-03-03 05:23:44 +00:00
Byron Mulvogue
297e0909d6 This will add the endpoint to the API. 2020-03-03 03:49:02 +00:00
Luna D
3fdae6b99c
that was not necessary 2020-02-22 11:31:57 -05:00
Luna D
d5337eb75a
more appropriate comment fix 2020-02-22 10:31:30 -05:00
Luna D
29dd045202
hotfix comment creation with locked comments 2020-02-22 05:45:17 -05:00
Nebbie Zebbie
fcd57a575a Fix assistants not being able to view/edit user links when they should 2020-02-22 02:14:15 +00:00
Nebbie Zebbie
c7208a3098 Fix moderators not being able to unstick topics 2020-02-21 07:24:45 +00:00
Nebbie Zebbie
3cbd80abc8 Fix query preserving where it's actually used (staff) 2020-02-21 02:32:08 +00:00
Nebbie Zebbie
4ff514b4d6 Preserve query in reports search 2020-02-20 21:08:07 +00:00
Nebbie Zebbie
0b0ebc1745 Preserve query in user search 2020-02-20 19:17:50 +00:00
Luna D
9c7bbc127b
fix assistants not being able to do user links 2020-02-17 12:21:19 -05:00
byte[]
2c9b27aee0 prepopulate tq on tags pagination 2020-02-10 22:41:41 -05:00
byte[]
e4e20033e7 fix misc pagination issues 2020-02-10 22:26:45 -05:00
Nebbie Zebbie
8f7a9b7c50 Make image [un]hiding wipe thumb target pre-transfer and not need source 2020-02-10 22:32:00 +00:00
Nebbie Zebbie
0a93da7952 Make dupe reports pagination preserve params 2020-02-10 21:38:21 +00:00
byte[]
edc127e46c change topic notification line 2020-02-06 18:08:04 -05:00
byte[]
25ea2013c6 add missing eos token to force dase parser to backtrack 2020-02-06 18:01:22 -05:00
byte[]
8cb8e303a7 fix price listing inconsistency 2020-02-06 17:51:22 -05:00
byte[]
cdab7a5a61 one more 2020-02-06 17:42:09 -05:00
byte[]
dbc5291f89 abolish single quoted attributes 2020-02-06 17:40:25 -05:00
byte[]
58374d9604 fix single quotes in header dropdown 2020-02-06 17:34:10 -05:00
byte[]
3922e31c12 quotes 2020-02-06 17:32:35 -05:00
byte[]
f664be4f85 preload tags on update failure 2020-02-06 17:27:26 -05:00
byte[]
9ea7980e3f hex upgrades 2020-02-06 17:24:41 -05:00
byte[]
18e932560d validate commission base price to be present, example image in directory listing to be present 2020-02-06 17:24:41 -05:00
Joey
4c0b440f58 Replace mention of Google Reader, as it was discontinued seven years ago 2020-02-02 22:56:45 -06:00
byte[]
14e6439ea7 run formatter 2020-02-01 11:04:11 -05:00
byte[]
39d53ee763 fix mandatory descriptions for filters, missing public option 2020-02-01 10:57:57 -05:00
byte[]
f8e5feb24c fix dnp editing 2020-02-01 10:45:44 -05:00
Nebbie Zebbie
7cee5f38ee Image hide reason changing 2020-01-31 23:50:50 +00:00
Nebbie Zebbie
d35b7a2b0e Allow repairing deleted images 2020-01-31 20:10:15 +00:00
byte[]
8128d48e8f deletion_reason ngram 2020-01-30 10:48:51 -05:00
byte[]
85e0cadf33 PUT mapping 2020-01-30 10:39:45 -05:00
byte[]
9241a08bce fix #23 2020-01-26 18:10:09 -05:00
SomewhatDamaged
c972f00cdc Featured image hiding (#24)
* Featured image hiding

This makes sure the Featured Image on the front page obeys user hiding.

* Optimized

Took the `hidden=1` check out of the `WHERE` clause.

* proper anti join

Co-authored-by: liamwhite <liamwhite@users.noreply.github.com>
2020-01-26 18:04:30 -05:00
byte[]
f558e76cc8 thanks for the tip! 2020-01-23 12:32:31 -05:00
byte[]
c2d26029ae more comprehensive fix 2020-01-22 09:12:37 -05:00
byte[]
f47e9f5e05 fix apparent author query 2020-01-22 09:01:10 -05:00
byte[]
dd915aa477 fix documentation 2020-01-22 08:51:27 -05:00
byte[]
63b2a146ec add topic_position to searchable fields list 2020-01-22 08:47:09 -05:00
Nebbie Zebbie
134b684bdd Allow user link editing to wipe tag 2020-01-21 08:24:08 +00:00
byte[]
4c4dc4b5ce deleted by could be nil 2020-01-18 23:12:40 -05:00
SomewhatDamaged
feefc2e5a7 Fix to allow users to include deleted images again (#22)
This used to be allowed in the old searching with the `deleted` param for all users.

This should correctly add back the ability (using the new `del` param) to specify `del=1` for any user/API search, but correctly block them from doing the more specialized "staff only" searching.
2020-01-14 06:54:15 -05:00
byte[]
3315c60789 prevent setInterval calls from queueing 2020-01-13 08:14:16 -05:00
byte[]
85a903a191 remove spurious inspect line 2020-01-12 11:52:05 -05:00
byte[]
ce534b7962 propagate cookies correctly into form values 2020-01-11 14:35:02 -05:00
byte[]
b1381de587 create gallery with the specified image as the cover 2020-01-11 14:27:18 -05:00
byte[]
d184ee0817 copy and customize filters 2020-01-11 14:24:30 -05:00
byte[]
858ddcc8ec add missing syntax toolbar to conversation creation form 2020-01-11 14:03:25 -05:00
byte[]
6294c94704 more complete tokenization of urls with internal parentheses 2020-01-11 13:57:58 -05:00
byte[]
3ac8687c18 allow get-based reverse searching 2020-01-11 13:51:14 -05:00
byte[]
ed44160603 run formatter 2020-01-10 23:20:19 -05:00
byte[]
4ac63f9f4e use HTML escaping in RSS template, fixes #21 2020-01-10 12:43:56 -05:00
Nebbie Zebbie
9c45046669 Make tag change pagination remember added param 2020-01-07 22:26:54 +00:00
byte[]
d362304d2d samesite=lax for persistent session 2020-01-07 10:43:16 -05:00
SomewhatDamaged
035b887f53 Somewhat damaged patch 1 (#20)
* Add new route

Adding route for
`/api/v1/json/posts/:id`

* Adding route controller

Adding route for
`/api/v1/json/posts/:id`
2020-01-07 10:35:24 -05:00
SomewhatDamaged
e918375c83 Somewhat damaged patch 1 (#19)
* Fix for module placement

Correcting my own mistake when I first made these routes

* Correcting module location

* Correcting module location

* Fix

Fixes a potential crash when no posts are returned.
2020-01-07 02:02:49 -05:00
byte[]
0c5e0d7fa7 fix pagination error 2020-01-07 01:14:06 -05:00
SomewhatDamaged
24b9863699 Featured image API route (#18)
* Add route

`/api/v1/json/features`

Shows current featured image

* Add route

`/api/v1/json/features`

Shows current featured image.

* Removed binding

* Moving this file to a more appropriate name.

* Correctly named and placed

Correctly named and placed to match its module name

* Updated per review

* Changed as per review

Renamed to `PhilomenaWeb.Api.Json.FeaturedController`
Moved to `lib/philomena_web/controllers/api/json/featured_controller.ex`

* Updated route

Route `/api/v1/json/images/featured` now uses `PhilomenaWeb.Api.Json.FeaturedController`

* like this

Co-authored-by: liamwhite <liamwhite@users.noreply.github.com>
2020-01-05 20:09:45 -05:00
byte[]
a98e268195 use iolist 2020-01-05 13:12:01 -05:00
byte[]
816e54fa12 use the range appropriately 2020-01-05 13:05:39 -05:00
byte[]
af97bd1717 fix graph height calculation 2020-01-05 13:03:43 -05:00
byte[]
75b15a59b7 add upload graph to stats page 2020-01-05 12:55:10 -05:00
byte[]
47fcec86ea fix inability to delete comment contents 2020-01-03 14:36:57 -05:00
byte[]
e5549cf8ed remove .bak file created by optipng bug
https://sourceforge.net/p/optipng/bugs/74/
2020-01-03 11:54:05 -05:00
byte[]
11e908ef14 batch tagger should resolve aliases and implications 2020-01-03 10:43:41 -05:00
SomewhatDamaged
8e39c06940 Fix for distance (#16)
* Fix for distance

Fixes the `distance` to search not being passed through to `ImageReverse.images()`

`set_scraper_cache` passes the `distance` through into `params`
`create` normalizes and inserts the result into the params passed to `ImageReverse.images()`
`normalize_dist` checks if there is a `distance` set, adds a leading 0 to it (to account for values like `.5`, which would crash `Float.parse()`), and turns it back into a well-formatted string for `ImageReverse.images()`

* Fixed space
2020-01-03 10:37:20 -05:00
byte[]
efb28184a3 allow blockquote cite context to consume all markup 2020-01-02 19:57:46 -05:00
byte[]
7ee6bf379f apparently that was necessary 2020-01-02 19:00:47 -05:00
SomewhatDamaged
ae5bfe14e4 Add /forums API Endpoints (#14)
* Adding routes for /forums

Adding routes for new /forums endpoints

* New API Routes

`/forum`
`/forum/:forum_id`

* Add New API Routes

`/forums/:forum_id/topics/:topic_id/`
`/forums/:forum_id/topics/:topic_id/:post_id`

* Adds New API Routes

`/forums/:forum_id/topics`
`/forums/:forum_id/topics/:topic_id`

* Forum JSON formatter

* Updated

Correctly filters out things that should not be shown.

* Added topic JSON filter

* Added correct pagination

* Spacing and neatened

* Cleaned up

Consolidated queries and neatened up spacing.
Fixed name

* Removed unneeded aliases

* Cleaned up

Consolidated queries
Fixed spacing
Removed unneeded aliases

* Cleaned up

Spacing

* Cleaned up

spacing

* Depluralized

* Cleaned up

Removed space

* Removed extra spaces

* Removed extra spaces

* Removed extra spaces

* Removed preloads

* Cleaned up

Grouped clauses

* Consolodated further

* Cleaned up preloads

* Cleaned up

Preloads
consolidated clauses
grouped clauses

* Cleaned up

removed `id`
`locked`

* Removed topic_id

Not useful since the API client should already know it.

* More consolodation of terms

* Add total post count

* Removed unneeded variable

* Last cleanup, I swear.
2020-01-02 17:47:12 -05:00
byte[]
ab94b2f547 correctly tokenize double-hyphen em dashes 2020-01-02 16:03:13 -05:00
Jeremy Tan Jie Rui
c4e6a988d4 Don't put UTF-8 in search URL (#15)
Also fix TeX-style quoting
2020-01-01 22:09:53 -05:00
byte[]
2e7937cbc3 ensure commission items are sorted by price 2020-01-01 21:36:06 -05:00
byte[]
e6f1885476 fix vote wipe mechanism 2020-01-01 18:29:49 -05:00
Luna D
0f4a231357
and also reposition "rankings" button 2020-01-01 17:52:06 -05:00
byte[]
574ff7d1d3 missing link to add listing item 2020-01-01 13:56:09 -05:00
byte[]
0da19674d1 reenable async commenting 2020-01-01 12:27:20 -05:00
byte[]
df3467df7b update image size after optimization 2020-01-01 12:13:07 -05:00
byte[]
bdee305936 fix unintentional inactivation of local storage settings 2020-01-01 11:05:44 -05:00
byte[]
44f2ebdbb6 this is not called boost_factor anymore 2020-01-01 01:18:40 -05:00
byte[]
e3e143e2c6 more comprehensive datetime parsing fix 2020-01-01 01:00:34 -05:00
byte[]
975531c42c that was the wrong fix 2019-12-31 23:48:31 -05:00
byte[]
fb33238f72 fix error in search parser when using 0 for day/month, fix link to search syntax page on search form 2019-12-31 23:44:28 -05:00
byte[]
7000be9865 add parameter recoder to api tag controller 2019-12-31 23:22:35 -05:00
byte[]
d406e1ee1c fix duration scale 2019-12-31 23:15:49 -05:00
byte[]
b9ad5643dc stop generating enormous gif thumbnails for videos 2019-12-31 23:11:23 -05:00
Nebbie Zebbie
d783417608 Apply search param remembering for pagination fix to ban search too 2020-01-01 00:59:14 +00:00
byte[]
7473b92309 fix channel creation errors 2019-12-31 19:54:19 -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