Commit graph

581 commits

Author SHA1 Message Date
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[]
ef21b7c7d0 return of the stats page 2020-05-06 11:12:18 -04:00
byte[]
b54704fba5 #44 unwrap tag reversions from transaction 2020-05-06 10:40:23 -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[]
6d673a4fed fix schema def 2020-05-02 20:41:26 -04:00
byte[]
46ab13261c first ecto migration, add sources table per #101 2020-05-02 20:38:47 -04:00
byte[]
ca8c9fe636 don't wait for completion 2020-05-02 18:30:11 -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[]
7cfb390e05 add workaround for broken gif seeking in ffmpeg 2020-05-02 02:12:54 -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[]
7b49f8d978 fixes #96: add tag blacklist 2020-04-30 16:34:35 -04:00
Luna D
f5e249aa39 fix uploader change error 2020-04-30 15:27:00 -04:00
byte[]
22bd05350d mark reports as opened when claimed and unclaimed 2020-04-30 14:43:23 -04:00
byte[]
d2c9975870 fixes #103: allow moderators to edit and create posts in locked topics 2020-04-30 00:24:13 -04:00
byte[]
406c7dd74b fixes #97: add new route for changing anonymity status of upload 2020-04-30 00:14:14 -04:00
byte[]
1e794b11d8 fixes #106: prevent renaming the default filter 2020-04-29 23:35:05 -04:00
byte[]
d82bb4f33f fixes #74: only reencode the image when there is no choice to fix the orientation 2020-04-29 23:29:05 -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
551fed5b0d generate slightly better jpeg thumbs 2020-04-29 22:31:55 -04:00
Luna D
f2f6e6dad6 pubsub thing 2020-04-27 23:23:36 -04:00
Luna D
3d16c4d4c0
validate user link format (#93) 2020-04-19 15:21:00 -04:00
byte[]
8d9f6fc3d3 more deployment changes 2020-04-07 12:00:55 -04:00
Nick
7c1f5c5095
Derive DNP types from reasons (#81)
* derive dnp types from reasons

* improve styling
2020-04-07 00:52:14 -04:00
liamwhite
ae6640e9d3
image upload mime validation - shows you what it thinks the mime type is (#79) 2020-04-07 00:22:03 -04:00
byte[]
603c8d4867 add ranch connection drainer 2020-04-07 00:21:44 -04:00
byte[]
be83699e65 tweak vp8 encoder settings 2020-04-02 21:45:21 -04:00
byte[]
e9a1ccad1f limit threadcount in video processing stage 2020-04-02 16:38:43 -04:00
byte[]
2b99afb746 update tumblr IP ranges per AS2635 prefix report; fixes #38 2020-03-31 13:03:32 -04:00
byte[]
7ace92c651 fix gallery ordering bug... 2020-03-29 23:52:53 -04:00
byte[]
2dc36ee36e add logger 2020-03-29 23:17:28 -04:00
byte[]
bd401cf967 attempt non-atomic update for gallery ordering 2020-03-29 23:04:30 -04:00
byte[]
21df6bc307 fixes #52 and #53 2020-03-29 18:36:24 -04:00
byte[]
bc87b287e0 fixes commission counter updates (#56) 2020-03-26 13:18:45 -04: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
22dfb51e56 mix format 2020-03-03 11:43:54 +01: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
Luna D
9c7bbc127b
fix assistants not being able to do user links 2020-02-17 12:21:19 -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
byte[]
edc127e46c change topic notification line 2020-02-06 18:08:04 -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
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
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[]
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[]
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[]
ed44160603 run formatter 2020-01-10 23:20:19 -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[]
e6f1885476 fix vote wipe mechanism 2020-01-01 18:29:49 -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[]
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
byte[]
7473b92309 fix channel creation errors 2019-12-31 19:54:19 -05:00
byte[]
4c82c90cea discard old parser 2019-12-31 14:56:38 -05:00
byte[]
7503e48591 show hidden links on tag page, hidden status on profile page 2019-12-30 18:56:29 -05:00
byte[]
b18a1370a5 reject associated duplicate reports when deleting 2019-12-30 18:37:41 -05:00
byte[]
31b1704847 mark image as generating thumbnails when replaced or repaired 2019-12-30 18:34:59 -05:00
byte[]
0c7f13932b add deleted toggle to main search form 2019-12-30 18:32:24 -05:00
byte[]
907e030b3a break compile time dependencies in schema helpers 2019-12-30 16:22:24 -05:00
byte[]
0f3cb295a3 break compile time dependencies in query compilers 2019-12-30 16:02:25 -05:00
byte[]
5163da171b allow the parser to determine the right type for the default field 2019-12-30 14:49:55 -05:00
byte[]
aacd3e31b7 don't allow duplicate reports to have identical source and target 2019-12-30 08:42:00 -05:00
byte[]
dfaee1e34d mask ip6 spec to /64 2019-12-30 07:36:23 -05:00
byte[]
5c7d21e397 fix for excessively slow vp8 encoding and tag bug 2019-12-28 10:47:04 -05:00
byte[]
41ea1f6b71 fix first_seen_at propagation 2019-12-27 23:27:37 -05:00
byte[]
54ed9b5c43 fix gallery navigation again 2019-12-26 18:00:44 -05:00
byte[]
f443aa5386 fix a bunch of navigation weirdness 2019-12-26 17:43:32 -05:00
byte[]
625ed5a594 fix conversation read marking 2019-12-26 10:16:37 -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[]
481e29fd50 explicitly set the app dir 2019-12-25 13:47:00 -05:00
byte[]
0981a1ba0b dynamic config 2019-12-25 11:56:19 -05:00
byte[]
179906a9cf ensure first_seen_at is propagated 2019-12-25 08:48:44 -05:00
SomewhatDamaged
68c3d035b3 Update to streamline Wilson score generation (#10)
* Update to streamline Wilson score generation

If an image's `upvotes` are 0, their Wilson score will be so minuscule as to be several (around 12) orders of magnitude before you see anything but zeros (assuming 0 `upvotes` and 1 `downvotes`). This will simply remove the calculation from such and make them fall to the default: 0

* Update elasticsearch_index.ex

Co-authored-by: liamwhite <liamwhite@users.noreply.github.com>
2019-12-25 03:49:56 -05:00
byte[]
dd84e8631b use more correct uri encoding method 2019-12-25 03:49:40 -05:00
byte[]
d9340371e5 expand list of allowed sort fields 2019-12-24 20:18:31 -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[]
398721a75f fix navigation 2019-12-24 16:44:58 -05:00
byte[]
c3c6278766 grant tag change reversion to moderators 2019-12-24 16:42:55 -05:00
byte[]
b7039af339 require that the queryable is always given 2019-12-24 16:17:32 -05:00
byte[]
620f316db8 break compile time dependencies for elasticsearch index usage 2019-12-24 16:14:42 -05:00
byte[]
cff7b9386f remove deprecated replace_all_except_primary_key 2019-12-24 12:09:47 -05:00
byte[]
15864ab742 api search controllers 2019-12-24 03:26:06 -05:00
byte[]
44a59aa67b admin: allow changing tags on deleted images, fix dupe report accepting 2019-12-23 09:46:48 -05:00
byte[]
991cab61bf Revert "more aggressive preloading"
This reverts commit 556cd39afd.
2019-12-22 22:13:36 -05:00
byte[]
f9b810d5d1 fix searching for deleted posts 2019-12-22 18:45:49 -05:00
byte[]
556cd39afd more aggressive preloading 2019-12-22 18:42:07 -05:00
Luna D
7caafd976e
re-add mod scratchpad by blatantly copy-pasting 2019-12-22 17:17:20 -05:00
byte[]
d2916e2a9b various filters fixes 2019-12-22 16:47:16 -05:00
byte[]
c92fd79868 provide defaults for gallery description and spoiler warnings 2019-12-22 10:04:04 -05:00
byte[]
d6592efa0e correctly set last_replied_to_at in topics 2019-12-22 09:33:07 -05:00
byte[]
e2923e8ad7 format=rgb32 for png thumbs 2019-12-22 09:19:43 -05:00
byte[]
4ff67c02d9 require yuv420 for video transcoding 2019-12-22 08:52:03 -05:00
byte[]
81b5a58fab tag change mass reversion 2019-12-22 00:09:01 -05:00
byte[]
563172f283 use main profile instead of high444 2019-12-21 23:57:59 -05:00
byte[]
15c268817c update counter too 2019-12-21 20:31:25 -05:00
byte[]
a3b3a38fef galleries fixes 2019-12-21 17:15:16 -05:00
byte[]
878b923a20 copy comments when images are merged 2019-12-21 16:37:13 -05:00
byte[]
4332ca76c5 more constraint validation, allow anonymous users to edit settings 2019-12-21 14:56:54 -05:00
byte[]
3874d569b4 admin comment and post query fixes 2019-12-21 14:31:32 -05:00
byte[]
edc2b0c5d3 fix permissions 2019-12-21 09:36:30 -05:00
byte[]
d24c97dad8 add related button to image page 2019-12-20 18:07:02 -05:00
byte[]
31e7727648 allow assistants to moderate images 2019-12-20 17:30:31 -05:00
byte[]
0d8e1c5ceb auto ip bans 2019-12-20 13:58:06 -05:00
Luna D
1b238f465f
description editing permission 2019-12-20 13:29:12 -05:00
byte[]
6c3515799b add invalid filter guard to user query compiler 2019-12-20 13:05:39 -05:00
byte[]
0c5860c457 ensure that site notices are live when selected 2019-12-20 09:22:39 -05:00
byte[]
e33be9c8de sleep first, then request 2019-12-19 23:14:14 -05:00
byte[]
48eda4ff5d poll votes 2019-12-19 22:41:19 -05:00
Luna D
85f70f88af
do more permissions 2019-12-19 19:00:09 -05:00
Luna D
45e3d2801d
*D (only deleted, no merges) search opt 2019-12-19 17:39:34 -05:00
byte[]
091fafd5e2 add back sort option for oldest comments first 2019-12-19 15:11:44 -05:00
byte[]
eeacf9ee14 untangle compile time dependencies in views 2019-12-19 14:32:12 -05:00
byte[]
c01ef54a71 avoid showing massive spoiler boxes in forums 2019-12-19 02:02:08 -05:00
byte[]
391c754a42 fix lingering galleries bugs 2019-12-19 01:51:21 -05:00
byte[]
ea3d40375f reverse the optgroups 2019-12-19 01:38:20 -05:00
byte[]
db1787aa45 various scraper fixes 2019-12-18 18:51:02 -05:00
byte[]
d6e89a1449 batched updater for user profile info 2019-12-18 14:32:21 -05:00
byte[]
fe746dac0f channel creation 2019-12-18 12:01:33 -05:00
byte[]
d7d9743a7e add missing application to list 2019-12-18 11:18:16 -05:00
byte[]
70b6c7ab17 channel updaters 2019-12-18 11:12:48 -05:00
byte[]
570319de97 correctly cast creation time 2019-12-17 21:32:33 -05:00
byte[]
3818a0e0d1 automatic user link verifier 2019-12-17 20:35:07 -05:00
byte[]
8cb3e33714 allow users to reveal hidden images, moderators to index deleted images 2019-12-17 19:42:50 -05:00
byte[]
b423f8f201 record initial source change on upload 2019-12-17 14:06:32 -05:00
byte[]
6d105ffc53 image uploader tampering 2019-12-17 13:53:41 -05:00
byte[]
3aa730a325 copy tags on dupe merge 2019-12-17 12:13:05 -05:00
byte[]
10707cd92d autoclose reports when reportable item is deleted 2019-12-17 11:45:22 -05:00
byte[]
8b220775bb more admin tools 2019-12-17 00:44:24 -05:00
byte[]
c45a2a16d9 admin donations 2019-12-16 22:24:40 -05:00
byte[]
598f46215e profile details 2019-12-16 21:26:43 -05:00
byte[]
8f445e49f9 batch tagging 2019-12-16 17:11:16 -05:00
byte[]
03301168c7 add connection: close to proxy request 2019-12-16 15:34:21 -05:00
byte[]
70b077e4e7 add reindex and delete buttons 2019-12-16 13:49:53 -05:00
byte[]
a74e7e9170 image mod tools 2019-12-16 00:25:06 -05:00
byte[]
6c3dd03270 no limit 2019-12-15 22:45:15 -05:00
byte[]
af1781dcd0 fix warnings 2019-12-15 21:24:23 -05:00
byte[]
f8431cb1c2 admin users and roles 2019-12-15 21:21:14 -05:00
byte[]
299e0cf923 admin mod notes 2019-12-15 17:52:51 -05:00
byte[]
e37ab2849e badges and awards 2019-12-15 15:02:13 -05:00
byte[]
2a6b596765 admin forums 2019-12-15 12:54:27 -05:00
byte[]
b14dbf46b5 admin pages 2019-12-15 12:33:37 -05:00
byte[]
62885b51df actually count correctly 2019-12-15 10:09:43 -05:00
byte[]
b1828ff68a adverts 2019-12-14 21:54:16 -05:00
byte[]
bc6965485a more straightforward usage of array_replace 2019-12-14 20:41:53 -05:00
byte[]
b62a723efe count correctly 2019-12-14 18:12:00 -05:00
byte[]
482f1dfe5e tag aliasing and image editing 2019-12-14 18:07:29 -05:00
byte[]
b7c8b95003 more aliasing prep 2019-12-14 17:07:43 -05:00
byte[]
05c427e013 already had that one 2019-12-14 16:27:06 -05:00
byte[]
7a1cc312f3 more permissions 2019-12-14 16:26:05 -05:00
byte[]
993658ce0e fix permissions 2019-12-14 16:23:35 -05:00
byte[]
4f3390f728 tag description and implication editing 2019-12-14 16:18:49 -05:00
byte[]
2eb39b43aa fix staff buttons 2019-12-14 15:15:35 -05:00
byte[]
e5266db21e add loader plugs 2019-12-14 14:46:50 -05:00
byte[]
ff854fce73 Merge remote-tracking branch 'origin/staff-tools' 2019-12-14 13:31:28 -05:00
byte[]
56ce4c74bc site notices 2019-12-14 13:28:04 -05:00
Luna D
782baba324
topic hiding / restoring 2019-12-14 13:03:11 -05:00
byte[]
5871920c14 ban id and time field refactor 2019-12-14 12:50:30 -05:00
Luna D
37be32f2b2
finish topic moving 2019-12-14 11:43:26 -05:00
Luna D
ffed45269b
unfinished topic moving 2019-12-14 11:10:33 -05:00
Luna D
375a5c6de1
topic stick, lock, total shitcode 2019-12-13 18:31:42 -05:00
byte[]
8196271976 show error tags first; signifiy staff metadata updates; remove pagination from watched images section 2019-12-13 14:56:52 -05:00
byte[]
fefb91644b fingerprint bans 2019-12-13 14:06:08 -05:00
byte[]
304d5486d6 subnet bans 2019-12-13 13:50:35 -05:00
byte[]
4063f84b6b user bans + ban messages for users 2019-12-13 12:14:34 -05:00
byte[]
47cd24e506 calculate pagination info correctly 2019-12-12 17:15:59 -05:00
byte[]
aa4af5a2e6 admin dnp queue 2019-12-12 16:44:50 -05:00
byte[]
d851e8cf62 various fixes:
line-heights
ability to edit filters
fix tag parameter decoding again
better error_tag message
2019-12-12 10:51:44 -05:00
byte[]
6293c6d45d Merge remote-tracking branch 'origin/staff-tools' 2019-12-11 23:22:03 -05:00
Luna D
4e5a29e6fb
post hiding, destroying, and a few fixes 2019-12-11 18:58:00 -05:00
Luna D
5101bd31f2
comment destroying (css wip) 2019-12-11 17:21:14 -05:00
byte[]
d4d4ee0e2d various fixes:
add base line-height: 1.5em
add appropriate placeholder color to inputs
show number of faves on fave index
link to correct location in watched images list on activity page
don't show pagination info when there are no results
don't create a source history entry if the source wasn't changed
2019-12-10 19:41:29 -05:00
Luna D
a2b3817d5a
comment hiding 2019-12-10 15:29:48 -05:00
Luna D
b6d4c38979
fix permission 2019-12-10 12:17:13 -05:00
Luna D
2d9d32af81
reveal anon 2019-12-10 11:57:01 -05:00
byte[]
2fcfa3a344 also allow merge 2019-12-09 20:38:55 -05:00
byte[]
ca3afb26fd ensure moderators can see duplicate report tab 2019-12-09 20:36:58 -05:00
byte[]
2c1725f20a correctly count user links 2019-12-09 20:29:44 -05:00
byte[]
2a1ceb421e use correct changeset 2019-12-09 20:24:44 -05:00
byte[]
7d247b777f admin user links 2019-12-09 20:21:49 -05:00
byte[]
687db1b98d duplicate reports 2019-12-08 23:41:35 -05:00
byte[]
13d971a0c1 admin reports: claim, close 2019-12-08 22:16:13 -05:00
byte[]
92dd6e1edb Merge remote-tracking branch 'origin/staff-tools' 2019-12-08 21:40:10 -05:00
byte[]
402c2eae90 add redis host for docker env, fixes #3 2019-12-08 18:34:18 -05:00
Luna D
b7e07b099a
use correct permissions 2019-12-08 17:03:26 -05:00
byte[]
21d9202347 fixes for banned users 2019-12-08 15:13:01 -05:00
byte[]
179d8a27d9 images in report queue 2019-12-08 13:22:38 -05:00