Commit Graph

943 Commits

Author SHA1 Message Date
Kira
1fdc3926df Update webpacker and fix a bunch of broken things with it 2019-08-03 20:25:22 -07:00
Kira
0b92d9c2f9 Static list of flagging reasons like old e6 2019-08-02 15:25:00 -07:00
Kira
ccbbe39338 Quick unflag options for posts
This also loosens the restrictions on what can be flagged and how
frequently. Previously pending posts could not be flagged, which
was not in line with our current flagging system purpose.
2019-08-01 16:03:13 -07:00
Kira
8dfb2b8e7d So yarn is removing this, and it's known to be broken 2019-07-25 09:22:24 -07:00
Kira
89256f5b76 Allow uploading of ugoira 2019-07-22 16:59:36 -07:00
Kira
1b929f7190 Allow post unapproval 2019-07-19 18:05:43 -07:00
Kira
e0f1d69ead Allow turning off throttles during testing 2019-07-19 03:48:16 -07:00
Zwagoth
624eb2c1b2
Merge pull request #109 from zwagoth/exception_logging
Add some cheap exception logging until something better is made
2019-07-17 17:41:13 -04:00
Kira
4fb3c9fedb Add some cheap exception logging until something better is made 2019-07-17 14:40:03 -07:00
Kira
79ea8bde71 Allow for forcing logins based on post attributes 2019-07-17 12:30:28 -07:00
Kira
7b750ac862 Descriptions on posts 2019-07-14 06:24:52 -07:00
Kira
1636b62c3e Move post uploader to vue.js and inline it 2019-07-11 20:19:56 -07:00
Kira
826d038cf5 Add tag preview functionality for uploader 2019-07-06 14:15:43 -07:00
Kira
528500e316 Add related tags functionality for upload page 2019-07-06 14:15:43 -07:00
Kira
03de07a2a1 Bunch of dumb little fixes related to user level changes 2019-06-30 11:16:05 -07:00
Kira
55e57edab8 Replace hardcoded levels with config based levels 2019-06-29 12:25:44 -07:00
Kira
16af051931 Convert platinum -> contributor for user rank 2019-06-29 12:06:13 -07:00
Kira
9fa294ba31 Convert gold -> privileged for user level 2019-06-29 08:45:58 -07:00
Kira
c819a34443 Add user based action throttles 2019-06-29 05:29:21 -07:00
Kira
0715b0c251 Add species and invalid tag types 2019-06-23 00:27:33 -07:00
Kira
847257966e Change upload limit formula to match e6 2019-06-22 02:01:49 -07:00
Kira
a907df4b9a File limits and processing that matches closer to e6 2019-06-20 19:51:51 -07:00
Kira
a2a26e25d4 Replace google cloud with ElasticSearch
Most of this was related to use of BigQuery for post versions and
generating reports and bulk reverts, but elasticsearch can easily
handle returning 5k results in a few ms, so this isn't a big deal.

There is also some pubsub stuff which has been gone for a while now.
I don't remember what it was being used for, but it is likely reporting
items, so not an immediate priority.
2019-05-16 16:29:08 -07:00
Kira
5d8494caac Replace post archive service with inline code 2019-05-10 16:08:08 -07:00
Kira
2f5964292b Remove AWS from iqdb and post archive
TODO: redo how post versions work, because they are too complicated.
2019-05-10 11:35:55 -07:00
Kira
06db14aceb Add simple versioning replacement
This replaces the old simple versioning helper that existed on
e621. The implementaiton is roughly the same but has been updated
to use newer rails methods.

No, it's not very flexible, but it didn't need to be.
2019-04-27 11:28:02 -07:00
Kira
8698bd4e39 Support for access locked forum categories 2019-04-21 20:32:11 -07:00
Kira
0503d7bb8c Most of comment voting fixes and vote viewer
TODO: locking and admin deletion
2019-04-07 21:46:08 -07:00
Kira
4513516e76 Post vote view and locking support 2019-04-06 13:13:50 -07:00
Kira
66b6d29ae3 Add pool import
This also limits the number of posts in a pool to 1000.
2019-04-05 16:08:33 -07:00
Kira
d9f5dcd4ce Tag type restrictions and history 2019-04-03 18:56:47 -07:00
Zwagoth
1089773d0c Merge branch 'elasticsearch' 2019-04-03 11:25:41 -04:00
Kira
b79b8e1f62 Silly mistakes in takedown code 2019-03-29 23:52:47 -07:00
Kira
e62099af44 A whole boatload of elasticsearch changes
Makes index job unique to account for changes to update triggering.
Fixes instances of mixed SQL and ES searches with tag_matches.
Adds utility methods for exists? and count_only ES searches.
Adds comment_bumped_at for comments page usage.
Adds random seeding capability.
Fixes random searches not working correctly.
Fixes status:active.
2019-03-28 14:04:01 -07:00
Kira
23c2e2d851 Help system 2019-03-26 21:55:16 -07:00
Kira
eaa5ee822d Add back limit on tag count, raised defaults
In order to prevent unbounded term generation, add back tag count
limit to the query generator.

Updated defaults to reflect the great increase in speed.
2019-03-24 08:48:59 -04:00
Kira
057edaa8d1 Add pagination support to Elasticsearch 2019-03-24 08:45:44 -04:00
byte
d1aa2e69f5 add post index 2019-03-24 08:45:44 -04:00
Kira
5083e6d92e Remove favorite groups 2019-03-23 00:57:37 -07:00
Kira
45394916d8 Sets 2019-03-23 00:40:44 -07:00
Kira
9b31e0a3a1 Add post report reasons editor 2019-03-14 22:15:37 -07:00
Kira
6f1d47c10b Add ticket infrastructure. 2019-03-13 14:04:59 -07:00
Kira
bc1218044c Blips 2019-03-01 08:44:29 -08:00
Kira
7b97883d29 Finish up takedowns 2019-02-27 03:47:23 -08:00
Kira
118459af1b Takedowns 2019-02-23 08:45:10 -08:00
Kira
22a077a2dd Convert delayed_jobs to activejob
Add sidekiq and create jobs for the majority of delayed actions.

Temporary hookup of sidekiq UI in routes for testing purposes.
2019-02-17 19:28:40 -08:00
Kira
a3ad66eff2 Show deleted post thumbnails
Allow users to see and click on deleted posts without showing
the actual post preview. This roughly equates to how deleted
posts work on E621 at present.

This also resulted in some clean up and bug fixing surrounding
determining if a post should be visible or not. Previously this
was limited to user level(for ugrade incentive), safe mode, and
if the post was banned. Now it's only safe mode and if the post
is deleted.

Future work items:
 - Remove display deleted toggle and support code, as it is broken.
2019-02-15 03:14:35 -08:00
Kira
43cad3f5e7 Remove post banning functionality
The distinction between file deletion and banning is pretty weird
and there are a bunch of edge cases that make this not worth
trying to maintain a distinction.

Left in the automatic implication code on banned artists because
it looked useful for automating some of the basic tasks that are
done surrounding DNP artists.
2019-02-14 01:44:54 -08:00
Kira
2ec0fed659 Prevent viewing deleted or banned posts
This fixes an exploit where you can view deleted and banned posts
through the atom service regardless of user level.
2019-02-13 19:58:38 -08:00
Kira
895fa25c03 Move deleted posts to a protected folder
Set up support for moving deleted files to a protected location
and support for emitting urls with authorization parameters to
permit access to them.

This closes #14
2019-02-12 03:00:57 -08:00