Commit graph

1196 commits

Author SHA1 Message Date
byte[]
5b49eb0b9d automatically apply system-wide theme preference for anonymous users 2020-12-08 00:24:32 -05:00
byte[]
5c51775f94 Revert "automatically apply system-wide theme preference for anonymous users (fixes philomena-dev/philomena#36)"
This reverts commit edcd4ebfde.
2020-12-08 00:21:44 -05:00
byte[]
edcd4ebfde automatically apply system-wide theme preference for anonymous users (fixes philomena-dev/philomena#36) 2020-12-06 13:04:54 -05:00
byte[]
1f57d0041c propagate filename through scraper (fixes derpibooru/philomena#226) 2020-12-06 12:40:38 -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[]
015fbb98ea undo incorrectly applied timezone offset in clientside scripts (fixes philomena-dev/philomena#75) 2020-12-02 19:03:35 -05:00
byte[]
aaf04544b6 add tag_count to supported clientside fields (fixes philomena-dev/philomena#78) 2020-12-02 18:31:15 -05:00
byte[]
d8f04fe922 format 2020-12-02 14:18:25 -05:00
Luna D
95727d274c
fix minor phrasing issues 2020-12-02 20:00:32 +01:00
Meow
685159587c
Merge pull request #73 from parasprite/Artist-links-code
Makes user links artist links
2020-12-02 19:30:07 +01:00
Parasprite
7be6b35f54 Style cleanup 2020-12-02 12:27:53 -06:00
parasprite
b79f07b86d
Fixes email validation (#74)
Co-authored-by: Parasprite <foalspeedahead@gmail.com>
2020-11-27 20:14:26 -05:00
Parasprite
0dc6eb5b65 Adds check for user links for commission text 2020-11-26 15:30:17 -05:00
Parasprite
6944cf0054 Improves text for artist link creation 2020-11-26 15:30:17 -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[]
495396206e remove config server (philomena-dev/philomena#56) 2020-10-26 23:03:08 -04:00
byte[]
c766ac9d3f change topic notification to post notification (derpibooru/philomena#191, derpibooru/philomena#39) 2020-10-26 22:30:14 -04:00
byte[]
a075576740 add edit link to streams on tag page (derpibooru/philomena#204) 2020-10-26 22:17:29 -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
byte[]
c6e0110f72 remove stray bullet 2020-10-23 00:46:19 -04:00
parasprite
13ce241396
Minor cleanup related to staff perms (#48) 2020-10-23 00:44:07 -04:00
byte[]
b5bc7d2d6b use :cdn_host from env (fixes philomena-dev/philomena#54) 2020-10-23 00:29:56 -04:00
byte[]
1e2c57d8e8 only update usage counters on valid TOTP (fixes philomena-dev/philomena#50) 2020-10-23 00:27:14 -04:00
byte[]
c30c8e3136 missing link to restore conversation (fixes philomena-dev/philomena#42) 2020-10-23 00:15:42 -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
Luna D
cc571a38c2
bump app upload limit to 125MB 2020-10-21 20:10:11 +02:00
Luna D
87eee9b332
preserve hidden param in tag navigation (fixes philomena-dev/philomena#40) 2020-10-21 20:03:59 +02:00
Luna D
7bc51f9b46
I am SPECIAL 2020-10-20 23:19:44 +02:00
Luna D
49547108a3
unscrew quick tags (fixes philomena-dev/philomena#51) 2020-10-20 23:18:53 +02:00
Luna D
d96b45f32e
rename sort by upload date to id (closes #32) 2020-10-19 21:23:36 +02:00
Luna D
91c6b1f659
hide emails from unauthorized mods (fix #34) 2020-10-19 21:10:48 +02:00
byte[]
1436c7ff06 update connecting ip in session 2020-10-12 03:01:20 -04:00
byte[]
cb11ba082b quickly reject user links from profile page 2020-09-28 10:36:27 -04:00
byte[]
a00cdab739 improve ajax error messages 2020-09-27 23:53:14 -04:00
byte[]
fc159c3782 centralize ajax determination 2020-09-27 23:47:32 -04: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
SomewhatDamaged
1a6c3731e0
Adds full DNP info to tags (#21)
* Adds full DNP info to tags

* Add dnp view

* Changed DNP to Dnp
2020-09-24 09:46:05 -04:00
SomewhatDamaged
70959e9094
Damaged limit staff skip (#20)
* Adds ability to enforce limits on staff

* Fix space
2020-09-24 09:36:39 -04:00
byte[]
9ad3330161 careful with reserved characters 2020-09-20 10:04:36 -04:00
byte[]
54e775a6c6 fix tag slug double encoding (derpibooru/philomena#203) 2020-09-20 10:00:20 -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
byte[]
f98aa22bda don't think anyone is uploading hourlong animations 2020-09-16 13:50:19 -04:00
Raptorshy
9d0d622fbd Allow moderators to edit commissions
Fixes #194
2020-09-15 16:27:50 -04:00
byte[]
5734deee85 use exchange icon instead of arrows 2020-09-14 23:39:31 -04:00
byte[]
50da6c7f3c add quick tag button to toggle all 2020-09-14 23:30:48 -04:00
byte[]
074453ddf1 allow removing existing tag with -tag, ctrl+enter for form submission, disable autocomplete on tag editor 2020-09-14 22:00:44 -04:00
byte[]
6a045ce88e don't bump ratelimit after unsuccessful attempts 2020-09-14 20:52:02 -04:00
byte[]
7736cb041f don't automatically tag 'featured image' (furbooru/philomena#33) 2020-09-14 20:20:10 -04:00
byte[]
504b1d5b82 prefill award label (#5) 2020-09-14 20:12:27 -04:00
byte[]
6deab827ac store filter_id in a long-lived cookie (derpibooru/philomena#139) 2020-09-14 20:02:43 -04:00
byte[]
218607b208 prevent params drop on admin user pagination (derpibooru/philomena#153) 2020-09-14 19:44:47 -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
byte[]
fd4843a39b use tags instead of tag_list_cache, fixes #17 2020-09-10 01:19:06 -04:00
byte[]
39ce0ae4fd require http clients to handle errors 2020-09-09 23:12:54 -04:00
byte[]
ea424ac83b remove textile toolbar buttons from tab indexing 2020-09-09 22:40:50 -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[]
bd2e9b4171 fix invalid mime error on reverse search 2020-09-08 00:02:24 -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[]
c9331f61b4 require page number to be positive 2020-09-07 23:19:32 -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[]
9a9d000c74 remove hostname from serving info 2020-09-06 16:51:53 -04:00
byte[]
cdc142592a require tag to exist on user link creation 2020-09-06 16:23:24 -04:00
byte[]
93902a19d0 mix format 2020-09-06 16:03:35 -04:00
byte[]
aa8da0103f hide merge buttons when either image is hidden 2020-09-06 14:24:32 -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[]
93e6979202 add controls to show pages for dnp and user link (derpibooru/philomena#181) 2020-09-05 23:26:44 -04:00
byte[]
6915d2ed45 add button for mods to unlock account (derpibooru/philomena#173) 2020-09-05 22:53:55 -04:00
byte[]
dbfdd22ea9 default to centered (can still be set to left if desired) 2020-09-05 17:46:02 -04:00
Luna D
b5637e9afb user link stuff (untested) 2020-08-28 13:23:17 -04:00
byte[]
113908f820 allow CSP customization on a per-controller basis 2020-08-23 18:30:58 -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
SomewhatDamaged
dec3615da5
Modify limit_plug for use by API (#15) 2020-08-22 12:11:50 -04:00
Luna D
a5c53894d6 display unconfirmed users in list 2020-08-18 10:04:17 -04:00
Luna D
235a77ac8b consistent spelling of "two factor" 2020-08-18 10:04:17 -04:00
Luna D
6816ea44d4 add missing 2fa icon to admin thing 2020-08-18 10:04:17 -04:00
Luna D
017890642f senior staff 2020-08-18 10:04:17 -04:00
byte[]
3609f69562 fix posting 2020-08-13 17:58:52 -04:00
byte[]
4bfb7d8dd3 always assign advert, even if nil 2020-08-13 17:55:36 -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[]
02bbf5e2f1 fixes invisible error message for comment rate limit, weird nesting error for tag updates, e.g. derpibooru/philomena#169 2020-08-11 01:14:00 -04:00
byte[]
5249deb47f more idiomatic 2020-08-08 15:13:41 -04:00
SeinopSys
2c121c80c8 Fix handling of the added query parameter everywhere 2020-08-08 15:06:41 -04:00
SeinopSys
39ff35c089 Fix tag changes pagination not preserving added query param
Closes #9
2020-08-08 15:06:31 -04:00
Nebbie Zebbie
9a9ce118c5 Tags on deleted image pages for non-staff. 2020-08-08 15:05:36 -04:00
byte[]
5b760436a1 ensure CSP plug config happens at runtime, not compile time 2020-08-06 13:27:56 -04:00
byte[]
3ba38edf0b add irreversible admin-only action to permanently delete an image file 2020-08-05 14:23:11 -04:00
byte[]
a81464f189 fix link to sign in page 2020-08-01 19:04:48 -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
byte[]
78dac4df70 re-add usage tracker 2020-07-30 20:00:44 -04:00
liamwhite
98f4166ea8
Replace Pow with generated Phoenix auth (#10) 2020-07-28 16:56:26 -04:00
Byron Mulvogue
b48a07f517 Allow staff to bypass rate limits 2020-07-24 12:51:23 +00:00
byte[]
abd6185f68 add new search and sort fields to UI 2020-07-21 19:31:55 -04:00
byte[]
ad6e055aff add missing rate limit 2020-07-21 10:50:33 -04:00
byte[]
b58bb87d71 fix staff tag showing for staff hiding a role 2020-07-13 13:09:30 -04:00
byte[]
03897624fe fix resolution pick error 2020-07-12 16:36:51 -04:00
byte[]
e581bc2d4e ensure animation info is present in api 2020-07-06 14:42:10 -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
byte[]
be10ad4663 add computed duration field 2020-07-06 14:00:02 -04:00
byte[]
49f0476ad8 allow uploading larger files 2020-07-06 08:56:23 -04:00
Nebbie Zebbie
6e4bd79843 Make forced filters visible to affected users if used 2020-07-06 07:43:12 +00:00
Nebbie Zebbie
ef55b8c4ae Fix tag hover dropdown being offset 2020-07-06 07:06:24 +00:00
David Joseph Guzsik
4f85936437
Link avatar on user's own profile to the avatar change page (#151) 2020-06-28 15:49:34 -04: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[]
fac13fcf92 fixes #133, preserve gallery search params across pagination 2020-06-16 13:03:58 -04:00
byte[]
cec8b605a8 add additional live events 2020-06-15 19:57:33 -04:00
byte[]
fdf27a3c02 underscore unused var 2020-06-12 13:02:28 -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
184583a07f
Fix broken link in profile about me box (closes #131) (#132) 2020-06-08 22:46:25 -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[]
5dfd8f5b60 ensure CB is assigned 2020-06-03 21:26:38 -04:00
byte[]
ec1a999913 normal uses variance, not sd 2020-06-03 21:18:39 -04:00
byte[]
7160433c33 update methods 2020-06-03 21:10:38 -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
Nebbie Zebbie
506099189f Make profile tag change pagination remember added param 2020-05-27 21:53:13 -06:00
byte[]
a2d9dcb51b robots config 2020-05-27 20:21:17 -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[]
9a67e5109a visual denoise in tag layout 2020-05-21 13:32:42 -04:00
byte[]
3141db8bf2 mix format 2020-05-20 14:23:57 -04:00
byte[]
7fca37741b replace use of hackney in scraper with mint 2020-05-20 14:18:13 -04:00
byte[]
09db15b29b fix ecto brain damage 2020-05-20 01:13:34 -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[]
41f144b32b use stronger hash function for anonymous names 2020-05-10 06:20:21 -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[]
a1b8ed9d33 move search, textile, date parser to app namespace 2020-05-07 22:43:40 -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[]
1168ba86f6 move IP/FP updaters to web namespace 2020-05-07 22:03:10 -04:00
byte[]
7e7c0c7ec9 fixes #115, add staff forum thread renaming 2020-05-06 22:58:03 -04:00
byte[]
075d947755 add missing track_total_hits for ES7 compat 2020-05-06 11:26:24 -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
6bbe358dd1
Elasticsearch 7 upgrade (#113)
* initial upgrade to elasticsearch 7

* fix stat page error

* i am an idiot

* fix es not creating new indexes

* more complete removal of doc_type

Co-authored-by: Luna D <cod7777@yandex.ru>
2020-05-04 08:19:42 -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[]
4abd5acd53 prevent page gaps from appearing where they are not supposed to, fixes #98 2020-04-29 23:49:19 -04:00
byte[]
be520b1d7c unsubscribe users from privileged topics when their role is updated, fixes #30 2020-04-29 23:05:19 -04:00
byte[]
feb9d513ea you missed one 2020-04-27 23:42:16 -04:00
Luna D
9a4381c0a2 fix template warning 2020-04-27 23:23:30 -04:00
Luna D
fb08f555f4
reindex image on source update (#94) 2020-04-19 15:05:42 -04:00
byte[]
63c89d2faf fix double send on registration 2020-04-18 20:28:01 -04:00
byte[]
e159c01bef fix broken case clause 2020-04-18 20:25:08 -04:00
Dan Schultzer
051a204d55
Add TOTP support in the invalidation session plug (#87) 2020-04-18 20:19:07 -04:00
David Joseph Guzsik
72f53d378d
Persist checked state of art categories across commission pages (#90) 2020-04-18 20:15:45 -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
Michael Pinnegar
ba76ede87d
Disable image scraper fetch when there is no text (#92)
*Modified fetch to be disabled on pageload. Javascript enables it
after the user has entered some text. Re-disables it if the text goes
to zero, or the image upload button has been used.
2020-04-18 20:14:40 -04:00
byte[]
11cac54ba0 mix format 2020-04-11 20:28:28 -04:00
Dan Schultzer
36cbdff953
Fix plug issue (#86) 2020-04-11 19:47:23 -04:00
Dan Schultzer
e5f0e473d9
Add plug to handle invalidated Pow session tokens (#36)
* Add plug to handle invalidated Pow session tokens

* Add token signing

* Refactor for tests
2020-04-11 14:54:55 -04:00
Nick
d247e01347
Properly handle failed captchas after XHR post (#85)
* handle form posts and xhr posts differently on captcha failure

* formatting
2020-04-11 14:23:55 -04:00
Luna D
1836fef402
webm takes ungodly amounts of time to process 2020-04-10 17:23:23 +00: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
Nebbie Zebbie
d56c5f2caa Prepopulate default dupe report states selection in pagination 2020-04-07 02:57:34 +00:00
byte[]
d09d77c0cd more careful checking of parameter values, fixes #75 2020-04-05 11:56:53 -04:00
byte[]
658472f16b fix advert blurriness issue 2020-04-03 14:08:37 -04:00
byte[]
3579429ac1 add 32px border around TOTP QR, fixes #71 2020-04-02 14:45:06 -04:00
Luna D
04ec46bc5b
you forgot it here 2020-04-02 09:54:21 +00:00
byte[]
904bada39e wilson 2020-04-01 00:42:46 -04:00
byte[]
3bb4a4ce56 whoops 2020-03-31 11:45:51 -04:00
byte[]
1c12c010fa mix format 2020-03-31 11:39:11 -04:00
byte[]
c8b0d9ca3d add avatars to post and comment json views 2020-03-31 11:38:01 -04:00
byte[]
724b3a97b1 add edit timestamp, edit reason to post and comment json 2020-03-31 11:09:44 -04:00
Neil McAlister
051a819c9c
Add timestamps to the API's comment view (#67)
* Add timestamps to the API's comment view

* Change property name to created_at
2020-03-31 11:04:06 -04:00
byte[]
0b0a5b1b42 fix markup errors 2020-03-30 20:12:25 -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
ac12462bec
Adding text editing bars to report and new topic (#60) 2020-03-27 11:46:36 -04:00
SomewhatDamaged
44a20a7888
Adjusted to suit standard (#58) 2020-03-27 01:07:24 -04:00
byte[]
43b5e069e6 link to correct location, fixes #46 2020-03-26 13:47:30 -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
Luna D
1983a736f3 reverse badge sorting order 2020-03-13 10:17:43 +01: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
Nebbie Zebbie
c0edd49ec6 Fix incorrect syntax on commission query preservation 2020-03-10 23:31:03 +00:00
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
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
Byron Mulvogue
7a164944b4 Fixed user.avatar failure. Ran mix format. 2020-03-03 11:23:53 +00: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
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
0a93da7952 Make dupe reports pagination preserve params 2020-02-10 21:38:21 +00: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[]
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[]
dd915aa477 fix documentation 2020-01-22 08:51:27 -05: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[]
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[]
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[]
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[]
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
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
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[]
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[]
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
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[]
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[]
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[]
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[]
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[]
38c4e35bb7 bans view changes 2019-12-30 07:30:39 -05:00
byte[]
1225aced41 load tags before body is processed 2019-12-26 18:58:52 -05:00
byte[]
f443aa5386 fix a bunch of navigation weirdness 2019-12-26 17:43:32 -05:00
byte[]
689ce5cd5a change rules for bracketed links 2019-12-26 00:39:57 -05:00
byte[]
81b37e42ff add faster textile parser backend 2019-12-26 00:03:27 -05:00
byte[]
37836b2c30 more admin permissions 2019-12-25 16:10:56 -05:00
byte[]
567459bf48 avatars 2019-12-25 13:32:24 -05:00
byte[]
0981a1ba0b dynamic config 2019-12-25 11:56:19 -05:00
byte[]
860de7615f more info should be expanded by default 2019-12-25 09:21:50 -05:00
byte[]
1990e384da fix random endpoint and ensure search_records/4 is the only search_records exported 2019-12-24 18:09:35 -05:00
byte[]
620f316db8 break compile time dependencies for elasticsearch index usage 2019-12-24 16:14:42 -05:00
byte[]
18798d2e99 ensure the authenticated user is never persisted as a further safeguard against API CSRF 2019-12-24 12:15:30 -05:00
byte[]
15864ab742 api search controllers 2019-12-24 03:26:06 -05:00
Joey
f1b1f03e02 Add Public Relations as secondary role option (aka more self-snowflaking) 2019-12-24 00:54:16 -06:00
byte[]
b2724c0de8 samesite session 2019-12-23 19:20:24 -05:00
byte[]
20c521e67b tor plug 2019-12-23 13:57:14 -05:00
byte[]
7b97a40ec8 add disable-with to dupe report form 2019-12-23 09:54:26 -05:00
byte[]
c76f28dc0b add tags to image target 2019-12-23 09:50:39 -05:00
byte[]
f847c560b1 prevent post deletion from jumping back to the first page 2019-12-23 09:25:11 -05:00
byte[]
1435149d32 admin badge user list 2019-12-23 09:23:25 -05:00
byte[]
991cab61bf Revert "more aggressive preloading"
This reverts commit 556cd39afd.
2019-12-22 22:13:36 -05:00
byte[]
25d867a213 fix svg download link showing as png 2019-12-22 19:10:25 -05:00
byte[]
556cd39afd more aggressive preloading 2019-12-22 18:42:07 -05:00
Luna D
a39adcb9d5
in retrospect it was a terrible idea 2019-12-22 17:52:38 -05:00
Luna D
116179e3ec
how did that even happen 2019-12-22 17:45:29 -05:00