Commit graph

606 commits

Author SHA1 Message Date
Luna D
9f4b8c3556
import helper instead of calling plug directly 2021-11-08 14:45:19 +01:00
Luna D
f555c337ea
basic moderation logs 2021-11-07 19:51:55 +01:00
byte[]
67ffb5cf13 Fix layout_class on related 2021-10-27 20:03:24 -04:00
byte[]
6b2e46c9e8 Fix distance inclusion on reverse search form 2021-10-24 16:18:50 -04:00
byte[]
983d606013 Add some specs and documentation, format 2021-09-29 22:09:21 -04:00
Luna D
fd17684882
render collections correctly in markdownrenderer 2021-09-29 22:24:38 +02:00
Luna D
1739373bf7
preliminary removal of textile and big migration 2021-09-29 22:05:16 +02:00
Luna D
c86e449f42
render static pages with unsafe markdown 2021-09-23 17:02:21 +02:00
Luna D
4e9cde610a
mix format 2021-09-19 23:22:48 +02:00
Luna D
ece485b367
fix bq 2021-09-14 23:41:46 +02:00
Luna D
14db174c26
add *_md versions of all columns, textile/md glue 2021-09-12 21:03:59 +02:00
Luna D
73cb4f46cc
reduce certain rate limits by half 2021-09-10 20:37:52 +02:00
byte[]
66c758cb13 Finally put tag_list_cache to rest (fixes philomena-dev/philomena#128) 2021-07-15 20:14:41 -04:00
byte[]
38c134668a Add missing deleted filter on featured lookup (fixes philomena-dev/philomena#124) 2021-07-15 20:02:54 -04:00
byte[]
192cb727a0 fix off-by-one error in user stat rendering 2021-04-04 13:02:58 -04:00
byte[]
838b449193 update mix deps 2021-04-01 13:09:56 -04:00
byte[]
79427af142 add and configure sobelow 2021-04-01 12:49:41 -04:00
liamwhite
f112f7928b
Tag locking (#102) 2021-03-01 12:01:27 -05:00
byte[]
7030b02183 add missing minlength attribute on "new password" inputs 2021-02-26 00:47:45 -05:00
byte[]
351cb282bf fix random results unintentionally hitting hidden images 2021-02-25 01:45:23 -05:00
byte[]
4f040da3fa expand oembed to a proper view 2021-02-10 20:01:05 -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
byte[]
702d096ecf unused variable, remove referrer redirect 2021-02-09 17:24:21 -05:00
VcSaJen
767a2ba949
User settings (#96)
Resolves derpibooru/philomena#121
Resolves derpibooru/philomena#122
2021-02-09 17:21:30 -05:00
Luna D
4eac58c380
prevent invalid bans 2021-01-21 21:24:22 +01:00
Luna D
4921ee13a8
shorten various staff titles 2021-01-20 22:47:06 +01:00
VcSaJen
24b22f78be
Public filter search (#88) 2021-01-18 13:00:35 -05:00
liamwhite
57427079f1
Cache purging callbacks (#87) 2020-12-16 10:53:26 -05:00
byte[]
2e8a5e92c9 add score-hiding snip per request 2020-12-16 09:35:58 -05:00
byte[]
0206c410de format 2020-12-16 09:27:44 -05:00
byte[]
c1992d272b exclude unused and once-off tags from automatic completion 2020-12-13 11:10:36 -05:00
byte[]
75be0794c0 remove controller reindex from posts, tags, reports 2020-12-12 17:06:26 -05:00
byte[]
d567d5ffc0 gallery reindexing to context 2020-12-12 16:51:11 -05:00
byte[]
dd535b5af2 hide commission entries after two inactive weeks (fixes philomena-dev/philomena#31) 2020-12-12 16:38:56 -05:00
liamwhite
6ebf080826
Remove spawn calls (#80) 2020-12-06 11:42:14 -05:00
byte[]
7f348ff5b5 format 2020-12-06 10:08:13 -05:00
parasprite
39fe2cbd55
Fixes batch tagging messing with complex spoilers (#49) 2020-12-03 14:23:32 -05:00
byte[]
d8f04fe922 format 2020-12-02 14:18:25 -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
Parasprite
04e5a4e26d Updates user link to artist link (user side) 2020-11-26 15:30:17 -05:00
byte[]
3a5b95312f reorder TOTP redirect (fixes philomena-dev/philomena#62) 2020-11-15 21:07:55 -05:00
byte[]
37adb661fb display bans in sorted order (fixes philomena-dev/philomena#66) 2020-11-15 21:00:05 -05:00
parasprite
e058a212e7
Removes discourage bans (#65)
Co-authored-by: Parasprite <foalspeedahead@gmail.com>
2020-11-07 00:22:41 -05:00
byte[]
c766ac9d3f change topic notification to post notification (derpibooru/philomena#191, derpibooru/philomena#39) 2020-10-26 22:30:14 -04:00
byte[]
9f9a4c1967 match correct format in badge image update (derpibooru/philomena#217) 2020-10-26 21:45:51 -04:00
liamwhite
c7ace12132
Elixir 1.11 (#55) 2020-10-26 17:01:29 -04:00
Luna D
3090bf7adc
stupidity 2: episode 1 2020-10-21 20:44:20 +02:00
Luna D
f4b7cc5f5f
fix error when changing name to existing one (fixes philomena-dev/philomena#45) 2020-10-21 20:39:16 +02:00
byte[]
76a1cf8b3a redirect to admin path when transitioning user link 2020-09-27 22:54:04 -04:00
byte[]
f01a9cf20b add missing session-related links (philomena-dev/philomena#23) 2020-09-27 00:03:34 -04:00
Raptorshy
18a571e7d1 assistants can now see deleteds in comments/forum search
Fixes #207
2020-09-26 23:46:25 -04:00
byte[]
0f69ae6fcf sort tag changes by id instead of creation date (derpibooru/philomena#200) 2020-09-18 10:07:46 -04:00
Luna D
f5229654e7 make ban deletions admin-only 2020-09-17 16:01:50 -04:00
Raptorshy
9d0d622fbd Allow moderators to edit commissions
Fixes #194
2020-09-15 16:27:50 -04:00
byte[]
7736cb041f don't automatically tag 'featured image' (furbooru/philomena#33) 2020-09-14 20:20:10 -04:00
byte[]
6deab827ac store filter_id in a long-lived cookie (derpibooru/philomena#139) 2020-09-14 20:02:43 -04:00
byte[]
96f1005255 fix gallery page ordering bug (derpibooru/philomena#195) 2020-09-14 19:19:14 -04:00
liamwhite
653fd0a4af
hCaptcha (#19) 2020-09-12 13:43:16 -04:00
Luna D
c806b08f0f redirect to profile path upon user edit instead 2020-09-12 11:45:42 -04:00
byte[]
cc0077d78f prevent double deletions 2020-09-10 12:02:01 -04:00
byte[]
24994d2fa2 invoke query compiler to determine if name should be escaped 2020-09-10 11:25:00 -04:00
byte[]
ecfe60bcaa don't recode tag slugs, fixes #18 2020-09-10 11:20:25 -04:00
David Joseph Guzsik
9a8b5a7ea7 Fix being able to vote on polls past their end date (#13) 2020-09-09 22:36:40 -04:00
byte[]
75e07bfb13 disable report limit for staff 2020-09-09 22:33:57 -04:00
byte[]
389100dae2 require tampering permission to see votes 2020-09-08 19:03:18 -04:00
byte[]
f2c1dbab0b correctly return error on gallery unique constraint 2020-09-07 23:47:19 -04:00
byte[]
c1d54de22a fix changeset error when uploading avatar 2020-09-07 23:39:30 -04:00
byte[]
a079eac912 no more than *3 open reports 2020-09-07 14:52:52 -04:00
byte[]
90830d361b propagate hiding user on reports 2020-09-07 14:52:52 -04:00
byte[]
a2e524b535 remove unnecessary referrer redirects 2020-09-07 00:28:24 -04:00
byte[]
04b893eaaf allow assistants to change image hide reasons 2020-09-06 23:59:50 -04:00
byte[]
0d359ee81e add tag alias validations 2020-09-06 14:19:21 -04:00
byte[]
da1e6a145d properly transactionalize image hiding and merging 2020-09-06 12:37:31 -04:00
byte[]
4dcb2958d3 Squashed commit of the following:
commit 8ea9cff4af46e24c38020652cedeff72957354fb
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 01:29:24 2020 -0400

    remove remaining serializable aside hiding related

commit 99ccf06264db6319ece2a896a104031447447a5f
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 01:20:40 2020 -0400

    interactions: remove serializable

commit a63bef06a6962368f69cf83afbc3c44f2467618c
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 01:16:27 2020 -0400

    users: remove serializable

commit 8053229f6fab507c29a40f0e22dd9cab7971e34f
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 01:11:14 2020 -0400

    user_links: remove serializable

commit 9b058add825b0a876a91a1cf2b1b22dc34066e42
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 01:09:33 2020 -0400

    topics: remove serializable

commit cd9ea908c34f72c0120fca1c4d581540db60db98
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 01:05:23 2020 -0400

    tags: remove serializable

commit c7563fef8fc905c32a0727a4b104222227a6bafa
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 01:02:22 2020 -0400

    static_pages: remove serializable

commit 3da661bdd1aec74e4ac5b69ec21124bc1ebc6fb4
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 01:00:15 2020 -0400

    posts: remove serializable

commit 18a50a4e5bed1ab6e4e6c13c3051a21ae7e8fbb0
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 00:55:55 2020 -0400

    poll_votes: remove serializable

commit 7d946ef23d7b27877d4bf0fb6a4db4ae64a9ffab
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 00:51:49 2020 -0400

    galleries: remove serializable

commit d8c35a0934e5394b092b050e071abdada4bdb640
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 00:42:43 2020 -0400

    conversations: remove serializable

commit 079e6dca6c8064867f2c0f90f351ea83c0f12b75
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 00:38:28 2020 -0400

    comments: remove serializable

commit 00ae38bad566fb6badeccceac2e394e65ec9428e
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 00:37:15 2020 -0400

    commissions: remove serializable

commit b3c4a4b13671ca73c58080b090dd6165552c87d6
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 00:17:12 2020 -0400

    bans: remove serializable

commit 8be9fe913ff1f6264b899e96ee38fa52032b8bda
Author: byte[] <byteslice@airmail.cc>
Date:   Sun Sep 6 00:02:44 2020 -0400

    badges: remove serializable

commit 162adda185f705b9749774c4af8c7d8db0d89790
Author: byte[] <byteslice@airmail.cc>
Date:   Sat Sep 5 23:56:51 2020 -0400

    adverts: remove serializable
2020-09-06 01:30:53 -04:00
byte[]
6915d2ed45 add button for mods to unlock account (derpibooru/philomena#173) 2020-09-05 22:53:55 -04:00
byte[]
75de5f867d use elastic multi search API for specific pages 2020-08-23 16:53:25 -04:00
byte[]
3fce31b658 separate search definition building from search execution 2020-08-23 15:47:42 -04:00
byte[]
a97f8d23ad fix discord embed cards 2020-08-22 22:53:21 -04:00
Luna D
235a77ac8b consistent spelling of "two factor" 2020-08-18 10:04:17 -04:00
liamwhite
d1c893248d
Search navigation (#14)
* return hits from elasticsearch and add in sort param to templates

* use returned hits from elasticsearch for navigation

* mix format

* fix gallery pagination

* add missing fields to search help dropdown

* unused variable
2020-08-13 11:32:35 -04:00
byte[]
539eb223ff Fix all but one dialyzer warning 2020-08-11 19:15:32 -04:00
byte[]
3ba38edf0b add irreversible admin-only action to permanently delete an image file 2020-08-05 14:23:11 -04:00
byte[]
5532ea4dec more complete fix for commission and gallery pagination error 2020-08-01 12:42:29 -04:00
byte[]
d303d02d2c fix double render on totp auth 2020-07-31 17:06:53 -04:00
liamwhite
98f4166ea8
Replace Pow with generated Phoenix auth (#10) 2020-07-28 16:56:26 -04:00
byte[]
ad6e055aff add missing rate limit 2020-07-21 10:50:33 -04:00
byte[]
70e70254ed mix format 2020-07-06 14:20:50 -04:00
Christine Dodrill
4cdc362237 philomena_web: hack in forum posts to the firehose (#2)
* philomena_web: hack in forum posts to the firehose

(cherry-picked from commit c5ff6f38f3c1274cd0c6160b798d6f74549735ef)
2020-07-06 14:20:07 -04:00
byte[]
c65f27a1ff mix format 2020-07-06 14:12:18 -04:00
Nebbie Zebbie
6e4bd79843 Make forced filters visible to affected users if used 2020-07-06 07:43:12 +00:00
byte[]
a1f2ac5083 change max open reports to 3 2020-06-25 11:12:05 -04:00
byte[]
f81b68bc71 fixes #143, reindex alias when removed 2020-06-16 13:10:52 -04:00
byte[]
cec8b605a8 add additional live events 2020-06-15 19:57:33 -04:00
byte[]
a36e2d7368 mix format 2020-06-12 13:00:59 -04:00
byte[]
8ef94e912b add firehose API 2020-06-12 12:59:19 -04:00
Joey
c8b33f0ff6
Add Philomena Contrib Sec Role, Staff Page Visibility Toggle (#130)
* Add Philomena Contributor to secondary roles list

* Visibility toggle
2020-06-07 22:32:04 -04:00
byte[]
417305e43c filter fixes 2020-06-06 21:56:07 -04:00
byte[]
9294e54771 Filter updates 2020-06-06 21:03:17 -04:00
byte[]
7f55c63303 reject discourage from list 2020-06-03 21:40:42 -04:00
byte[]
6ef394a024 fix related images query 2020-05-28 21:04:35 -04:00
byte[]
d7f5cbcb77 fixes #124, uploads not blocked for DNP 2020-05-28 20:35:52 -04:00
byte[]
64428907f5 somewhat fix random ordering 2020-05-28 19:55:02 -04:00
byte[]
a73f270ca6 fixes #123, block DNP creation without linked tag 2020-05-28 18:46:52 -04:00
byte[]
3440a2d4a2 reliable queueing for thumbnail generation 2020-05-27 19:29:23 -04:00
byte[]
cc4103fcea stop spawning off for advert updates 2020-05-27 17:14:22 -04:00
byte[]
98db6a1ca2 mix format 2020-05-27 13:01:35 -04:00
byte[]
7b36f99c09 set samesite attribute to lax on all cookies to fix warnings 2020-05-26 17:37:49 -04:00
byte[]
3141db8bf2 mix format 2020-05-20 14:23:57 -04:00
byte[]
033fac01e9 fixes #119: link associated streams to artist tags 2020-05-13 14:17:04 -04:00
byte[]
53ad9dd139 unique tags in autocomplete 2020-05-10 06:41:57 -04:00
byte[]
a656f64225 fixes #116: hidden images appear in navigation 2020-05-07 23:58:21 -04:00
byte[]
84d784d33a move reindex logic to context for reports, image creation 2020-05-07 23:15:43 -04:00
byte[]
8e9d6285e4 move textile renderer to web namespace 2020-05-07 22:19:08 -04:00
byte[]
00415b062c hoist ImageNavigator, ImageScope, ImageSorter to web namespace 2020-05-07 22:10:54 -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[]
4b86e783ef you have to halt the plug pipeline explicitly 2020-05-04 03:18:36 -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[]
56ad635154 fixes #34: add scraper to replace box 2020-05-01 23:02:20 -04:00
byte[]
1f5f5ce104 fixes #70: improve visibility of adult streams 2020-05-01 22:50:54 -04:00
byte[]
2df7e1c2f8 fixes #69: livestream channel search 2020-05-01 22:33:40 -04:00
byte[]
8f59092082 fixes #77: restore cross-page gallery organization 2020-05-01 15:51:28 -04:00
byte[]
4be21fc592 #77: order the gallery list in a more sensible way 2020-05-01 14:10:10 -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[]
8fca87859c format 2020-04-30 17:26:34 -04:00
byte[]
d1783cdeb8 fixes #45: add poll administration options 2020-04-30 17:24:24 -04:00
byte[]
44b004f9ec fixes #80: broken presence check on tag_id param 2020-04-30 00:38:47 -04:00
byte[]
0b8cad77dd fixes #104: show aliases in autocomplete 2020-04-30 00:18:47 -04:00
byte[]
406c7dd74b fixes #97: add new route for changing anonymity status of upload 2020-04-30 00:14:14 -04:00
byte[]
be520b1d7c unsubscribe users from privileged topics when their role is updated, fixes #30 2020-04-29 23:05:19 -04:00
Luna D
fb08f555f4
reindex image on source update (#94) 2020-04-19 15:05:42 -04:00
byte[]
5f9e9d98a6 api relevance sorting, fixes #83 2020-04-08 11:11:58 -04:00
byte[]
603c8d4867 add ranch connection drainer 2020-04-07 00:21:44 -04:00
byte[]
d09d77c0cd more careful checking of parameter values, fixes #75 2020-04-05 11:56:53 -04:00
byte[]
904bada39e wilson 2020-04-01 00:42:46 -04:00
byte[]
1c12c010fa mix format 2020-03-31 11:39:11 -04:00
liamwhite
723bfa213f
Use JSON views for API (#64)
* AwardJson, LinkJson, UserJson to views

* FilterJson -> view

* ForumJson -> view

* TopicJson -> view

* PostJson -> view

* TagJson -> view

* CommentJson -> view

* GalleryJson -> view
2020-03-29 21:11:38 -04:00
SomewhatDamaged
196c5e14b6
API additions for user interactions on single images (#63)
* API additions for user interactions on single images

* removed ability to render without supplying interactions
2020-03-29 20:51:35 -04:00
liamwhite
b1de5389eb
Change ImageJson to view (#62) 2020-03-29 19:39:36 -04:00
byte[]
21df6bc307 fixes #52 and #53 2020-03-29 18:36:24 -04:00
SomewhatDamaged
44a20a7888
Adjusted to suit standard (#58) 2020-03-27 01:07:24 -04:00
byte[]
b20217925b ensure reports are reindexed when merged, fixes #51 2020-03-26 13:42:11 -04:00
byte[]
bc87b287e0 fixes commission counter updates (#56) 2020-03-26 13:18:45 -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
Luna D
da5135bc11
mix format 2020-03-13 09:21:17 -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