Commit Graph

1313 Commits

Author SHA1 Message Date
Earlopain
487fd576aa
[Exceptions] Only log commit, add quick link to user 2022-07-10 19:11:32 +02:00
Zwagoth
22f50e03a5
Merge pull request #396 from zwagoth/ruby-3
Ruby 3.1
2022-06-08 09:27:53 -04:00
Earlopain
1c51a35484
[JS] Fix images not loading in older browsers
The vue 3 bundle isn't transpiled down as much as we need it to,
this will run it through our transpile step
2022-06-01 21:37:07 +02:00
Earlopain
57f711bb4d
Merge branch 'master' into ruby-3 2022-05-28 15:45:25 +02:00
Earlopain
2af251b387
[Uploads] Allow denying uploads per user level 2022-05-22 21:17:12 +02:00
Earlopain
3108613b0e
[EmailBlacklist] Unverify existing users on create 2022-05-22 15:21:41 +02:00
Earlopain
c40e94c2d2
Merge pull request #416 from zwagoth/vue-3
Vue 3
2022-05-21 22:28:54 +02:00
Earlopain
92d049690a
[Vue] Remove the compat build 2022-05-21 15:45:22 +02:00
Earlopain
9367e9a336
[Vue] Fix other warnings and set compat mode to 3 2022-05-21 15:38:04 +02:00
Earlopain
9d55ede1cb
[Vue] Switch to migration build 2022-05-20 22:48:18 +02:00
Earlopain
3a69cd3578
[Cleanup] Remove accept_terms_of_service
The 18+ popup already covers this, and the message was never displayed anyways.
2022-05-16 20:41:30 +02:00
Kira
500df9d3ee [Mod] Allow exporting address lists for PII requests. 2022-05-05 12:17:50 -07:00
Kira
c993cd29f0 [Misc] PP prep 2022-05-04 11:33:31 -07:00
Earlopain
0af0956692
[Tags] Add oc: prefix for character types 2022-05-03 18:58:45 +02:00
Earlopain
84889d9f18
[Cleanup] Remove unused tag config stuff 2022-05-03 18:58:11 +02:00
Earlopain
c930c9ee52
[Cleanup] Remove unused binstubs + capistrano 2022-04-25 21:10:20 +02:00
Zwagoth
eb87b5d27d
Merge pull request #376 from zwagoth/db-gem-clean
Cleanup gems and database
2022-04-25 06:04:36 -04:00
Earlopain
9833561942
[Rails] Remove old framework_defaults files
The only change is `urlsafe_csrf_tokens`, which is now true.
`cookies_same_site_protection` was specified at another place,
:lax is now the default and can be removed
2022-04-13 12:02:01 +02:00
Earlopain
5528f43b0d
[Sessions] Remove GET logout route
No more accidentally logging out just because you clicked on a link
https://e621.net/forum_topics/31292
2022-04-09 22:45:00 +02:00
Earlopain
c40fe2fae9
[Misc] Fix ruby 3 deprecation warnings 2022-04-09 13:40:30 +02:00
Earlopain
3de690961d
[Cleanup] Remove unused gems and tables/columns 2022-04-07 19:17:33 +02:00
Earlopain
26d755b895
[Cleanup] Remove sftp storage manager 2022-04-07 18:23:02 +02:00
Earlopain
037bffe5ae
[Cleanup] Remove unnecessary search routes 2022-04-02 15:00:31 +02:00
Earlopain
1eff0215ac
[Layout] Fix boolean styling in simple_form 2022-03-30 16:57:51 +02:00
Earlopain
d0db1dd2dd
[Cleanup] Remove modqueue tag coloring 2022-03-28 19:16:45 +02:00
Earlopain
a80c9af67f
[Uploads] Improve invalid file ext error reporting 2022-03-21 16:50:17 +01:00
Earlopain
fba2c8a505
[Uploads] Add site toggle to disable uploads 2022-03-17 16:26:15 +01:00
Earlopain
2a4f97610e
[Cleanup] Remove more upload attributes 2022-03-16 18:34:23 +01:00
Earlopain
dd8aa8199b
[Cleanup] Remove modqueue random 2022-03-16 15:48:29 +01:00
Earlopain
a7de562385
Revert "[Cleanup] Remove post report reasons"
This reverts commit 6b6e19db38.
2022-03-08 11:32:18 +01:00
Earlopain
6902434a90
[Replacements] Remove hourly limit
The normal upload limit is still in effect though.
Fixes #379 by completly ignoring the actual problem.
2022-03-05 17:23:53 +01:00
Earlopain
b37bb3c001
[Cleanup] Remove remaining delayed jobs code 2022-03-05 16:09:28 +01:00
Earlopain
5a88be7d2d
[Cleanup] Remove spam detection
Checked for is_gold, which doesn't work anyways
2022-03-05 16:05:53 +01:00
Earlopain
e01ab43577
[Cleanup] Remove janitor trials 2022-03-05 15:58:30 +01:00
Earlopain
6b6e19db38
[Cleanup] Remove post report reasons
Users must select a reason when reporting a post, but that wasn't
displayed in tickets for about 2 years now
2022-03-05 14:20:14 +01:00
Earlopain
86dc0c80e9
[Replacements] Automatically remove bvas on approve
Closes #377
2022-02-19 18:45:35 +01:00
Earlopain
e3728546c7
[Cleanup] Remove artist banning 2022-02-19 16:54:26 +01:00
Earlopain
ac5e8673ca
[Cleanup] Remove most source strategy code 2022-02-19 15:55:26 +01:00
Earlopain
3857eeccf3
[Cleanup] Remove some storage manager code 2022-02-19 14:25:13 +01:00
Earlopain
451e23c121
[Cleanup] Remove dead related tags code 2022-02-19 14:11:49 +01:00
Earlopain
f7ba9c5043
[Cleanup] Remove post appeals 2022-02-11 17:05:09 +01:00
Earlopain
7aa6adeae4
[Cleanup] Remove donmai specifics 2022-02-09 15:39:18 +01:00
Earlopain
a135c2a592
[Cleanup] Remove reportbooru 2022-02-09 15:39:07 +01:00
Earlopain
96d9b7e310
[Cleanup] Remove recommender service 2022-02-09 15:37:44 +01:00
Earlopain
e9f7ac85bf
[Cleanup] Remove artist commentaries 2022-02-03 17:02:49 +01:00
Earlopain
5ebc8756c9
[Cleanup] Remove more danbooru specific code 2022-02-03 16:41:10 +01:00
Earlopain
6f8b4001e0
[Cleanup] Remove danbooru cloudflare purge cache functionality 2021-11-20 21:18:29 +01:00
Earlopain
b1f10089d2
[Cleanup] Remove sources controller 2021-11-20 22:03:59 +01:00
Zwagoth
37a9137096
Merge pull request #364 from zwagoth/post-events-log
Post events log
2022-01-31 13:05:05 -05:00
Earlopain
1c6b2dcba9
[Users] Remove special casing for name change feedback
Part of old danbooru code, these feedbacks where never created on e6.
Also remove name change approve/reject controller actions, it's all automatic
2022-01-22 16:20:49 +01:00
Kira
d532cd28c5 [Login] Add captcha to login page. 2022-01-09 12:39:53 -08:00
Earlopain
aa77f1a76a
[Posts] Save post events in separate table
Part of  #346
2022-01-06 13:44:30 +01:00
Earlopain
05c704b83d
Merge pull request #353 from zwagoth/docker-iqdb
[Docker] Add iqdb/s to composer
2022-01-05 14:03:26 +01:00
Zwagoth
0d531ff146
Merge pull request #284 from Earlopain/replacements-audit
Add replacement tracking for uploader
2022-01-02 19:56:10 -05:00
Earlopain
0e6640871f
[TagAlias] Add redirect for old aliases in forum requests 2022-01-02 13:04:59 +01:00
Zwagoth
163bf18e84
Merge pull request #345 from zwagoth/blacklist-rework
Fix blacklist not applying on videos
2021-12-03 14:43:14 -05:00
Earlopain
65383ca5c1
[Docker] Another batch of review improvements
* Fix boolean value in compose file. I just removed the variable altogether,
the iqdb site already checked against iqdbs_server.present? anyways
* Add checksum check for iqbd download
* Fix newline in iqdb patchfile
2021-11-18 19:13:00 +01:00
Earlopain
71aab10d18
[Docker] Add iqdb/s to composer
Closes #315
2021-11-18 01:13:38 +01:00
Earlopain
765c6769fb
[Blacklist] Simplify hiding logic
Instead of switching out the src just hide the element.
This removed quite a bit of code and the blacklist now works with webm.

Fixes  #318
2021-11-17 18:08:13 +01:00
bitWolfy
21ed3764ce Merge branch 'master' into formatting-helper 2021-11-17 01:54:29 -08:00
Zwagoth
f519e889b1
Merge pull request #352 from zwagoth/docker
Replace vagrant with docker
2021-11-16 23:33:25 -05:00
Earlopain
8009972e9b
[Flags] Fix some words in the avoid posting flag reason 2021-11-15 18:31:25 +01:00
Earlopain
061176e095
[Setup] Ignore limits when seeding
This makes the environment config understand booleans. If something
ends with "?" it tries to interpret it as a boolean. A bunch of
existing configs where changed to reflect this change.
2021-11-14 22:16:36 +01:00
Earlopain
ce871e412c
[Setup] Improve docker setup
* Reduces the image size by using alpine and cleaning up after some things
* Simplify the initial setup instructions slightly
* Access via localhost:3000 instead of e621.local
2021-11-14 14:12:51 +01:00
Earlopain
7c972ecf91
[Setup] Replace vagrant with docker 2021-11-14 03:31:26 +01:00
Earlopain
0d06391298
[Misc] Remove unused install/docker files 2021-11-13 14:25:52 +01:00
Earlopain
ef0e81156c
[Config] Align max pages with live site 2021-11-02 14:32:40 +01:00
Earlopain
34cc839016
[Config] Remove upload feedback thread
This isn't used on e6 and someone might make this thread and have it
 appear for other users
2021-11-02 14:30:38 +01:00
bitWolfy
db8cf6cb74 [UI] Add formatting buttons to DText inputs 2021-10-31 20:30:37 -07:00
bitWolfy
0c99e12095 [Flags] Fix a typo on the 48 hour reason explanation 2021-10-17 23:02:23 -07:00
bitWolfy
2d76eae435 [Flags] Re-arrange the config values for clarity
48 hour flag reason ended up under the deletion reasons because of a rebase gone awry
2021-10-17 22:00:18 -07:00
bitWolfy
8aee306952 [Flags] Fix a configuration error
Rebasing the branch went wrong
2021-10-17 21:55:59 -07:00
bitWolfy
b589931b9d [Flags] Tweaks to the 48 hour deletion reason 2021-10-17 21:39:13 -07:00
bitWolfy
f39ee08820 [Flags] Redesign the new flag page 2021-10-17 21:37:37 -07:00
bitWolfy
1170c4a71c [Posts] Minor changes to the prebuilt deletion reasons 2021-10-17 10:04:24 -07:00
bitWolfy
c70ed04e40 [Posts] Add pre-built deletion reason selector 2021-10-14 10:41:01 -07:00
Earlopain
bdeb4b3501
[IQDB] Remove dead code 2021-10-02 21:15:48 +02:00
Earlopain
7b3077e348
[PostSets] Remove atom feed 2021-10-02 21:02:41 +02:00
Kira
088a6a2740 [JS] Try to fully target older browsers 2021-09-30 02:26:05 -07:00
Kira
3da92e81e7 [JS] Because I was forced to upgrade webpack and redo everything from scratch
This is probably going to be partially broken somehow. Let's find out.
2021-09-22 23:29:14 -07:00
Zwagoth
bc283e9284
Merge pull request #296 from Earlopain/blacklist-sizing
Fix blacklisted posts starting out with original sizing instead of the users setting
2021-09-23 00:26:39 -04:00
Earlopain
869d3dd8e7
Merge remote-tracking branch 'origin/master' into blacklist-sizing 2021-09-05 19:28:39 +02:00
Earlopain
d8b00bf94b
[Rails] Allow easy disable of the cache_store
Setting it in the individual environment config does not work because it
was overwritten by the cache_store.rb initializer
2021-08-24 19:22:01 +02:00
Zwagoth
0b0184fca1
Merge pull request #294 from Earlopain/readonly
Add readonly mode
2021-08-12 09:59:28 -04:00
Zwagoth
4b4afd0f90
Merge pull request #297 from Earlopain/misc-again
Misc again
2021-08-04 08:05:38 -04:00
Zwagoth
522676bb08
Merge pull request #288 from Earlopain/cors
[CORS] Allow authorization header
2021-08-03 18:46:38 -04:00
Earlopain
18fb718658 [Posts] Update embeded title to account for 3d artwork 2021-07-20 18:09:51 +02:00
Earlopain
3fd543327b
[Pools] Replace select all with a link to the gallery
This is not terribly useful and actually slows down my browser quite a bit
because of the huge number of entries it needs to displays
2021-07-19 18:23:30 +02:00
Earlopain
bd93c61e77
[ReadOnly] Add basic read-only mode 2021-07-18 17:50:57 +02:00
Earlopain
19f84e6acd
[Posts] Unify scale naming on post and in settings
Moves generation of the options from js to templates in order
to access the sample image width to display.
2021-07-18 01:35:52 +02:00
Earlopain
9564f714e6
[CORS] Allow authorization header
Fixes #270
2021-07-07 13:44:58 +02:00
Earlopain
6910369e2a
[Misc] Add rubocop and solargraph config
A bunch of rules are disabled or tweaked for the current style
2021-07-05 13:21:49 +02:00
Earlopain
5d430e8210
[Replacements] Use ajax for approve/reject/toggle/promote actions 2021-06-26 18:25:25 +02:00
Earlopain
f54e5d7f84
[Replacements] Allow toggling user penalize 2021-06-26 14:01:07 +02:00
Kira
80ba696d35 Merge branch 'staff_notes' 2021-05-18 11:14:48 -07:00
Kira
b3eb88405d [Staff Notes] Add staff notes 2021-05-12 21:57:12 -07:00
Earlopain
f2696386a8
[Misc] Remove unused help:upload_notice 2021-05-03 13:05:00 +02:00
Earlopain
4b27ebb6f9
[Seeding] Fix system user not being promoted 2021-04-30 23:46:28 +02:00
Kira
32f4dc32a7 [Gems] Fix sidekiq warning about session secret
Sidekiq no longer shims its own session system, so it isn't relevant
to provide it the session key.
2021-04-30 10:12:24 -07:00
Kira
33013e0a44 [Debug] Better logging of slow queries
Rails is VERY opaque about which query timed out when reviewing
backtraces for code that loads relations. Often it becomes difficult
to tell exactly which query was generated.

This interrogates the exceptions for these and pulls out the SQL
and bind params for further debugging. Automatic unwrapping of
rails template exceptions is done, as a majority of these seem
to be triggered in production by relations that are lazily loaded
through templates, or template code.

Also I cleaned up the backtrace display a little bit while I was
messing with this code. Usually it isn't relevant to see the 130
lines of rails relationship loader code. Full traces are still
saved so that in the event something happens inside a gem/framework
file it can still be easily located.
2021-04-30 10:12:10 -07:00
Zwagoth
af7f7f9d10
Merge pull request #256 from Earlopain/remove-useless-config
Remove useless config entries
2021-04-18 17:41:12 -04:00
Kira
dff34d0f13 Merge branch 'user_warned' 2021-04-16 15:39:51 -07:00
Kira
1feee5e9a5 [Admin] Allow marking content as having earned a user a warning/ban 2021-04-16 15:39:32 -07:00
Kira
0b4e3fc57e [Post] Ability to regenerate image and video samples on demand 2021-04-07 10:33:19 -07:00
Kira
173294fb56 [Replacements] Testing 2021-04-07 10:33:19 -07:00
Kira
43ffb7925f [temp] tests 2021-04-07 10:33:19 -07:00
Kira
d4a4be82bb [Replacements] Fix errors caught in review 2021-04-07 10:33:19 -07:00
Kira
a28466bdaf [Replacements] Continued progress
[Replacements] Fix exceptions when processing replacements

[Replacements] Fix handling of invalid file types

[Replacements] Fix error reporting and promote dupe checking

[Replacements] Prevent duplicate replacements from cropping up
2021-04-07 10:33:19 -07:00
Kira
3855d64228 Post replacement system 2021-04-07 10:33:18 -07:00
Earlopain
e7b03a84e9
[Config] remove dead keys 2021-04-03 20:14:15 +02:00
Zwagoth
c40498ce41
Merge pull request #250 from Earlopain/post-favorites
Add list of post favorites to seperate route
2021-04-03 03:11:33 -04:00
Kira
3db4c30721 [Admin] Ability to reowner posts for special conditions 2021-04-01 22:33:37 -07:00
Earlopain
e18813895a
[Feature] Move post favorites to seperate path
This makes them visible to normal users but moves them to a seperate page.
This operation is expensive, let's see if there is an easier way to fetch them.
2021-03-23 15:49:00 +01:00
Kira
121546a854 [Stats] Add basic stats system 2021-03-13 13:16:16 -08:00
Kira
ec53c66230 [Forum Votes] Fix inverted logic + raise limit + error reporting 2021-03-11 11:28:43 -08:00
Kira
adabdd1028 [Forum] Revise forum post vote system 2021-03-04 20:33:56 -08:00
Kira
a7317a668a [Rails] Turn off url safe csrf until migration complete 2021-02-25 12:31:57 -08:00
Kira
784890ca3e [Posts] Fix tag set presenter using broken memoist gem 2021-02-25 12:08:09 -08:00
Kira
76d1999ade [Rails] Upgrade to rails 6.1 + fix tests 2021-02-25 12:08:09 -08:00
Kira
048e5d7182 [Rails] Update to rails 6
Fix sidekiq initializer
2021-02-25 12:08:09 -08:00
Kira
9c88cbe0ec [Uploads] Remove ability to upload flash files 2021-01-23 14:11:05 -08:00
Zwagoth
5e3a62fd06 Update development box bringup scripts 2020-12-23 15:13:56 -05:00
Kira
436d2aea38 [Ruby 3] Fix up some deprecations involving ruby 3
Still pending are gems that make poor choices and need to be removed,
replaced, or fixed up.

Memoist
ActiveModelSerializers
2020-11-11 21:06:12 -08:00
Kira
db8d4c4773 Normalize EOL style + newline at end of files. 2020-10-24 05:50:32 -07:00
Kira
ac17597afb [Video] Small tweaks
Automatically fix up file path based on deleted status in posts
Don't make the default sidekiq runner participate in video
2020-10-17 23:01:58 -07:00
Kira
afdaf3a486 [Samples] Resize logic + sample support for images 2020-10-17 22:35:28 -07:00
Kira
c35d272d1e Updated encode settings
Save space, save time, make it clear it's a sample
2020-10-17 22:35:28 -07:00
Kira
555bd25b8d [Video] Temp 2020-10-17 22:35:28 -07:00
Kira
aff0f5f2da [Gems] Update gems + fix cache deprecation 2020-10-01 08:12:04 -07:00
Kira
f24c14307c [Dev] Add e621.lc to dev env allowed hosts 2020-09-05 05:08:48 -07:00
Kira
556ae6080a [Tags] Allow suggesting unicode source tags
Also rate limit creation of tag suggestions.

This allows the creation and acceptance of tag aliases and implications
that contain unicode. This allows people to suggest aliases that
romanize names or remove unicode from names.
2020-07-10 04:20:24 -07:00
Kira
aad6714931 [Tag Relations] Place new requests in configurable category
Previously these were being forced into category 1, which always
placed them in the general category. This is undesirable.

This allows for new tag aliases, implications and bulk update requests
to be placed inside a forum category set in a configuration value.
2020-07-04 18:27:17 -07:00
Kira
6fddcc7d58 [Cookies] Hopefully fix Firefox defaulting to SameSite=none 2020-07-02 17:23:16 -07:00
Kira
c379640738 [Discord] Fix discord domain after discord changed it 2020-05-08 18:45:37 -07:00
Kira
61bc341df7 [Admin] dumb hacky test stuff 2020-04-30 16:34:31 -07:00
Kira
3cb1e91adf Better remember support 2020-04-12 19:08:33 -07:00
Kira
e780d5d182 Throttle pool post edits
This limits the number of pools that a user can edit the posts of
per hour. This allows for high rate of post edits but limits how
many pools can be touched.
2020-04-12 18:03:36 -07:00
Kira
5db95b362b Add deleted posts index 2020-04-05 07:30:12 -07:00
Kira
576e503add Save progress on theme options page 2020-03-31 03:02:33 -07:00
Kira
cbc04d3dba Homepage 2020-03-31 03:02:33 -07:00
Kira
8dba62fe77 Main menu restyle 2020-03-31 03:02:33 -07:00
Kira
074971aa71 Make metrika tag optional 2020-03-18 20:18:21 -07:00
Kira
b55802d49a Add back metrika on request 2020-03-18 19:57:35 -07:00
Kira
94154ca600 Fix /user/login redirect 2020-03-13 19:07:30 -07:00
Kira
7026209af9 Fix insane production logging level 2020-03-13 19:07:08 -07:00
Kira
f774a06831 Update CSP with right captcha domain 2020-03-08 18:04:26 -07:00
Kira
c2ccd647fd Fix up captcha for sign up 2020-03-08 17:43:28 -07:00
Kira
d65a1a7d8e Update some needed redirects 2020-03-07 08:33:05 -08:00
Kira
33524e19d5 Cookie update 2020-03-06 11:00:07 -08:00
Kira
293e500863 More CSP nonsense surrounding discord. 2020-03-05 15:06:48 -08:00
Kira
82beab098f More discord fixing 2020-03-05 14:09:33 -08:00
Kira
b2925f3f69 Fix webm playback. 2020-03-05 12:46:01 -08:00
Kira
629f7f3169 Add missing redirect targets for post pages 2020-03-04 07:03:51 -08:00
Kira
048d1dcc1c Update CSP 2020-03-04 06:56:28 -08:00
Kira
eb318b19c7 Better opt out of mobile responsive display
Users keep asking for this, so here it is.
2020-03-01 08:30:41 -08:00
Kira
377425b6f5 Update gems 2020-02-26 02:02:37 -08:00
Kira
be4e075699 Limit tag count to a configured value per post 2020-02-26 00:26:13 -08:00
Kira
2d97f292ca Fix typo in CSP policy 2020-02-22 09:38:09 -08:00
Kira
38aaa8cbe2 Fix show all comments link 2020-02-21 21:40:37 -08:00
Kira
a4f9f10658 Remove link_to_function 2020-02-21 21:40:37 -08:00
Kira
b532ec88fa Replace inline scripts with js tags with nonce 2020-02-21 21:40:37 -08:00
Kira
8e18c6d4e4 Initial CSP setup 2020-02-21 21:40:37 -08:00
Kira
7efd7ceda1 Fix up takedowns 2020-02-13 23:17:42 -08:00
Kira
caf5ba7d13 Don't nuke my darn settings! 2020-02-04 15:23:09 -08:00
Kira
f19c3e408b Add discord server support 2020-02-02 13:50:20 -08:00
Kira
512b00d321 Use new news style 2020-01-25 02:13:55 -08:00
Kira
7a1f10b977 Add user setting for compact uploader mode 2020-01-03 06:39:55 -08:00
Kira
0c69db869c Post serializer 2020-01-02 10:23:09 -08:00
Kira
4c61ee2557 Fix upload limit related pieces and uploader links 2019-12-29 02:37:50 -08:00
Kira
7d02d90232 Allow file uploads and urls for image search 2019-11-28 12:27:06 -08:00
Kira
d55b96253b Add better tag editor 2019-11-09 21:16:25 -08:00
Kira
4b7345f7ea Kill legacy controller and routes 2019-11-08 12:43:52 -08:00
Kira
da11044024 Nuke the reports controller
And as many references to it as was quickly possible to isolate.
2019-10-31 12:22:05 -07:00
Kira
b5d24df7e3 Bump default max video duration 2019-10-30 09:33:57 -07:00
Kira
2c229d4369 Add tag list collapsing 2019-10-29 06:38:14 -07:00
Kira
8e80df77ff Update gems
This also removes the sprockets based asset pipeline because it
isn't being used, and it was causing startup exceptions.
2019-10-22 21:26:35 -07:00
Kira
d679fd7292 Remove most viewed support
This service wasn't something planned to be supported and there
are some links to it. If we add view counts(unlikely) this can be
integrated into the site again.
2019-10-21 23:12:00 -07:00
Kira
d765bc5981 Remove batch upload
Limit upload listing to janitor+
2019-10-21 23:05:40 -07:00
Kira
160b0cb22e Remove saved searches 2019-10-21 02:57:03 -07:00
Kira
c729a4d641 Update unicorn settings 2019-10-18 19:19:47 -07:00
Kira
0102e4239b Update sidekiq settings 2019-10-18 19:14:34 -07:00
Kira
e1fe3cc9c0 Add config option for elasticsearch host 2019-10-18 19:09:02 -07:00
Kira
9d3de75e52 Add support for mobile ads 2019-10-12 12:42:13 -07:00
Kira
a2f97acfdc Fix sidekiq route security 2019-10-05 23:41:48 -07:00
Kira
6f74ef28bf Remove broken bulk revert tool 2019-09-28 22:10:23 -07:00
Kira
b5a726b909 Fix some IQDB query stuff
Added blacklist inline so that you can see the results if they are
on your blacklist.
Added timeout and some minor error handling, in case the endpoint
is dead.
2019-09-28 00:43:43 -07:00
Kira
ea43834b8c Add option to update post IQDB from frontend 2019-09-28 00:20:37 -07:00
Kira
d15acddca1 Remove broken sitemap.xml 2019-09-25 15:56:17 -07:00
Kira
5a133e1643 Add lore tag category 2019-09-24 17:04:46 -07:00
Kira
f5bf733c86 Fix email verification being a user level
Having a distinct level for user verification proved to be rather
problematic for code flow and introduced an extra level below
blocked. Since it makes the account unusable until activated
it made sense to use an extra field and stop messing with user
levels explicitly.

This should also make tests a lot easier to deal with because it
doesn't require any changing of the user level.
2019-09-23 16:16:45 -07:00
Kira
e42324dd03 Remove counts controller 2019-09-19 15:40:05 -07:00
Kira
32d8d8ac34 Update post mode menu
Add add to set and remove from set option
2019-09-19 12:41:37 -07:00
Kira
c9496797cf Fix set maintainer links 2019-09-16 17:19:17 -07:00
Kira
ce38222a00 Add support for mod only tag categories
Allow for setting up tag categories that can only be used by
moderators.
2019-09-16 13:16:52 -07:00
Kira
64fffb5bd9 Add framework for disabling age checks
This adds two helper methods to the user model along with a config
toggle for using or disabling them as age checks within the code.
2019-09-15 10:19:16 -07:00
Kira
47ccf8bbe7 Add missing mailgun init 2019-09-13 14:12:32 -07:00
Kira
3d7f1532f2 Send mail using mailgun 2019-09-13 12:46:44 -07:00
Kira
9c7b7a23d6 Use rails 6.0 defaults 2019-09-13 10:20:07 -07:00
Kira
b7ce7a7ae9 Customize new users before save
The old before_create callback fired too late and it was almost
certain to overwrite changes to the model made elsewhere without
very careful orchestration. This moves customization closer
to instance creation and averts many potential problems.

The customize method still needs to take into account that models
can be customized during creation with hash params and check
for those changes for important parameters.

The better way to do this is probably to change the defaults in
the database, but it's less customizable.
2019-09-12 15:00:03 -07:00
Zwagoth
96f2b208f3 Fix development install process 2019-09-11 18:51:55 -04:00