Commit graph

185 commits

Author SHA1 Message Date
Luna D
97feb0ac00 Add version 4 TypeScript-based FP calculation 2024-06-13 10:24:39 -04:00
Floorb
fe8395da99 feat: add ability for staff to delete tag changes from tag change history
This used to be a thing in Booru on Rails but wasn't added to Philomena
for some reason.
2023-05-02 19:58:06 -04:00
byte[]
ea1bae56ed Enable bulk reversion of bulk tag vandalism 2022-05-03 21:24:23 -04:00
Luna D
26deaaf588
approval queue stuff 2022-03-24 18:44:39 +01:00
Luna D
eeb2f851e0
post and comment approval 2022-03-24 18:44:38 +01:00
Luna D
a3db6f6eed
initial user verification stuff 2022-03-24 18:44:38 +01:00
liamwhite
dadc2f1585
Local autocomplete (#151) 2021-12-26 19:16:21 -05:00
Meow
4f561b9c16
Merge pull request #146 from philomena-dev/modlogs
basic moderation logs
2021-11-08 20:22:19 +01:00
Luna D
f555c337ea
basic moderation logs 2021-11-07 19:51:55 +01:00
byte[]
bf568745dc Allow password resets and account unlocks on banned accounts (fixes derpibooru/philomena#259) 2021-11-07 09:33:22 -05:00
liamwhite
f112f7928b
Tag locking (#102) 2021-03-01 12:01:27 -05:00
byte[]
ec7ed8d780 generate pretty file name on demand (fixes philomena-dev/philomena#97) 2021-02-10 19:30:31 -05:00
byte[]
f6c8d57bdf fix autocomplete and fetch controller paths 2021-02-09 17:37:54 -05:00
byte[]
f56ce27780 ignore explicit activity routing 2021-02-09 17:28:24 -05:00
byte[]
62143a3910 format 2021-02-09 17:24:41 -05:00
VcSaJen
767a2ba949
User settings (#96)
Resolves derpibooru/philomena#121
Resolves derpibooru/philomena#122
2021-02-09 17:21:30 -05:00
VcSaJen
24b22f78be
Public filter search (#88) 2021-01-18 13:00:35 -05:00
Parasprite
a244b8d322 Updates user link to artist link (code side)
make user link


Update structure for artist links


bap
2020-11-26 15:30:17 -05:00
liamwhite
653fd0a4af
hCaptcha (#19) 2020-09-12 13:43:16 -04:00
byte[]
6915d2ed45 add button for mods to unlock account (derpibooru/philomena#173) 2020-09-05 22:53:55 -04:00
byte[]
3ba38edf0b add irreversible admin-only action to permanently delete an image file 2020-08-05 14:23:11 -04:00
liamwhite
98f4166ea8
Replace Pow with generated Phoenix auth (#10) 2020-07-28 16:56:26 -04:00
byte[]
a36e2d7368 mix format 2020-06-12 13:00:59 -04:00
byte[]
9294e54771 Filter updates 2020-06-06 21:03:17 -04:00
byte[]
7e7c0c7ec9 fixes #115, add staff forum thread renaming 2020-05-06 22:58:03 -04:00
byte[]
ef21b7c7d0 return of the stats page 2020-05-06 11:12:18 -04:00
byte[]
6f9955bac1 fixes #114, channel visibility routing error 2020-05-04 22:34:10 -04:00
liamwhite
af9e779c59
Renaming (#112)
* First (not-yet-working) attempt at self-renaming

* Actually working renames

* last_renamed_at

* Prevent renaming while banned

* Move username changing from controller to model

* Username change logging

* Rate limiting for username changes

* username -> name and format

* add UBQ

* modify interval

Co-authored-by: Joey <joeyponi@gmail.com>
2020-05-02 18:17:55 -04:00
byte[]
d03c1d7e5b fixes #76: filter public conversion route 2020-05-02 12:58:11 -04:00
byte[]
a97006fd9c fixes #109: add ability to delete channels 2020-05-02 12:27:50 -04:00
byte[]
1f5f5ce104 fixes #70: improve visibility of adult streams 2020-05-01 22:50:54 -04:00
SomewhatDamaged
3e7ee76fe2
Api create image (#105)
* added new method (POST) to /api/v1/json/images

* Cleaned up debug

* added require_authorization plug, fixed up issues with image_controller

* make user do work

* Fixed inefficient function use

* added api fingerprinting

* more robust

* corrected holdover from merging files
2020-05-01 00:40:57 -04:00
byte[]
d1783cdeb8 fixes #45: add poll administration options 2020-04-30 17:24:24 -04:00
byte[]
406c7dd74b fixes #97: add new route for changing anonymity status of upload 2020-04-30 00:14:14 -04:00
Nick
79d8ed8a1c
Prevent compromised passwords from being used (#89)
* prevent compromised passwords from being used

* formatting consistency

* run mix format and hardcode api url

* more formatting

* remove unnecessary string upcase
2020-04-18 20:15:18 -04:00
byte[]
1c12c010fa mix format 2020-03-31 11:39:11 -04:00
byte[]
21df6bc307 fixes #52 and #53 2020-03-29 18:36:24 -04:00
SomewhatDamaged
84ac9d27d7
Adds /api/v1/json/filters endpoints (#55)
* Adds /api/v1/json/filters endpoint

* Modified as per discussion

* Using Repo.paginate properly now

* Added total count to output
2020-03-25 11:32:25 -04:00
SomewhatDamaged
7ddd8b8ec4
New /filters/:id API endpoint (#48)
* New /filters/:id API endpoint

* Fix to use can? permissions

* Fixes requested
2020-03-12 12:53:25 -04:00
Byron Mulvogue
297e0909d6 This will add the endpoint to the API. 2020-03-03 03:49:02 +00:00
byte[]
14e6439ea7 run formatter 2020-02-01 11:04:11 -05:00
Nebbie Zebbie
7cee5f38ee Image hide reason changing 2020-01-31 23:50:50 +00:00
byte[]
ed44160603 run formatter 2020-01-10 23:20:19 -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
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
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
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[]
4342978483 hides, vote tampering 2019-12-30 07:50:02 -05:00
byte[]
15864ab742 api search controllers 2019-12-24 03:26:06 -05:00