Commit Graph

9558 Commits

Author SHA1 Message Date
Psychpsyo
26c681575e
[Posts] Add support for folding displays (#763) 2024-10-22 15:25:07 -07:00
Cinder
cd69aa4911
[WikiPages] Sort tag relationship lists alphabetically (#771) 2024-10-22 15:05:58 -07:00
Cinder
2716ba29ca
[Artists] Turn domain names into search links (#770) 2024-10-22 15:05:45 -07:00
asl97
50757a1e3b
[Posts] Fix atom feed newline in link href error (#767) 2024-10-22 10:11:46 -07:00
Tarrgon
7866c700fa
[Posts] Show verified uploaders to everyone (#757) 2024-09-29 13:14:07 -07:00
Donovan Daniels
7650e1606a
[Tickets] Allow ordering tickets by id (#761)
Resolves #754
2024-09-29 13:11:24 -07:00
Donovan Daniels
9c82b003a3
[PostFlags] Allow uploading guidelines flag on approved posts (#764) 2024-09-29 13:08:45 -07:00
Donovan Daniels
cffc480b23
[PostVersions] Allow querying by updated_at (#762)
Resolves #753
2024-09-29 13:07:00 -07:00
Cinder
726a361b00 Revert "[Posts] Show verified uploaders to everyone (#723)"
This reverts commit 2738ccfb62.
2024-09-11 16:33:18 -07:00
Cinder
d69c34ee9a
[Themes] Rework the theme config page (#752) 2024-09-08 16:28:06 -07:00
Tarrgon
aa5a7fb6fb
[Posts] Allow source_diff to wrap dead sources in quotes (#714)
Fixes #554
2024-09-08 14:03:16 -07:00
Cinder
db1dc385d0
[AvoidPosting] Minor UI tweaks (#750) 2024-09-07 14:28:29 -07:00
Cinder
4834f2cd11
[Misc] Fix the missing bottom margin issue (#751)
Desktop style overwrote the themed one.
2024-09-07 14:28:21 -07:00
Donovan Daniels
5ef9c55c7d
[UserFeedbacks] Add deleted record count to feedback summaries (#743) 2024-09-07 14:28:07 -07:00
Donovan Daniels
f315504660
[Posts] Add verified artist search (#663) 2024-09-07 13:34:25 -07:00
Cinder
84dcafc8c8
[Thumbnails] Fix an issue caused by the avatar having an invalid value (#748) 2024-09-03 03:18:29 -07:00
Cinder
28ebc378e0
[JS] Fix an error in older browsers caused by replaceAll (#747)
Fixes #744
2024-09-03 02:07:26 -07:00
Cinder
a20aaae0e0
[Misc] Rework the page margins on mobile (#746) 2024-09-02 17:11:16 -07:00
Cinder
54cc34ee9f
[DText] Adjust the font size on desktop (#745) 2024-09-02 16:45:41 -07:00
Cinder
0d23500a86
[Posts] Only show uploader feedback counts to staff (#742)
Fixes an issue introduced in #723
2024-09-02 07:52:44 -07:00
Donovan Daniels
ab0453120a
[WikiPages] Redirect back to wiki when editing/fixing tag (#705) 2024-09-02 07:40:41 -07:00
Tarrgon
f716bd8793
[Posts] Re-add the warning for removing an implicated tag (#712) 2024-09-01 11:41:56 -07:00
Tarrgon
2738ccfb62
[Posts] Show verified uploaders to everyone (#723) 2024-09-01 11:32:53 -07:00
Cinder
705254627d
[Blacklist] Separate blacklist display for posts and comments (#741)
Apparently, people were really confused by there only being one blacklist before.
2024-09-01 11:10:19 -07:00
Cinder
a977c4ed47
[Uploads] Show the unload warning if any tags are filled in (#740) 2024-08-28 09:27:26 -07:00
Tarrgon
46a89a1ddb
[Thumbnails] Fix regenerating thumbnails if bg_color is empty (#738) 2024-08-28 09:22:17 -07:00
Tarrgon
2cc040a9d4
[Notes] Double click to edit note (#645) 2024-08-26 06:34:42 -07:00
Donovan Daniels
d3fa071149
[Uploads] Fix error with direct url & no sources (#701)
Fixes #337
2024-08-23 06:38:26 -07:00
Cinder
4fb8944b29
[Blacklist] Mark posts that match any filters (#733)
Even if the filter is disabled, the post still gets a class that makes the info bar red.
2024-08-23 06:35:57 -07:00
Cinder
0a7efad27b
[Blacklist] Add wildcard support (#732) 2024-08-23 06:35:22 -07:00
Cinder
85fe550602
[Misc] Multiple mobile-specific fixes
* [Blacklist] Rework the quick-blacklist UI to be mobile first
* [Misc] Restore page margins on mobile
* [Misc] Increase font size in DText
* [Uploads] Fix an overflow issue on the upload page
* [Uploads] Fix an overflow issue with the source inputs
2024-08-23 06:34:48 -07:00
Cinder
5285d1337d
[Blacklist] Even more fixes (#729)
* Fix a reflow issue with avatars
* Only run the comment blacklist on startup
* Fix the quick blacklist not applying filters correctly
* Fix an error when a filter has only optional tokens
2024-08-19 02:24:08 -07:00
Cinder
93a437382b
[Users] Fix a typo on the settings page (#730) 2024-08-18 12:38:03 -07:00
Tarrgon
b23303e1b2
[AIBUR] Add a "flip" button to aliases and implications 2024-08-18 10:57:10 -07:00
Cinder
ba9e600950
[Blacklist] More fixes (#725)
* Fix the blacklist not applying to deferred posts
* Minor optimization fixes
* Add comment blacklisting
2024-08-16 08:23:05 -07:00
Cinder
6a7430c870
[Blacklist] Fix the anonymous blacklist (#722)
The default anonymous blacklist was not getting filled in correctly from the metatag.
Fixes #721.
2024-08-13 13:52:07 -07:00
Cinder
d9dfe04301
[Blacklist] Minor fixes (#720)
* Fix deferred posts blacklisting
* Fix fav:me metatag not working correctly
* Fix a strange overflow issue in older browsers
* Minor style tweaks
* Reduce collapse animation speed
2024-08-13 08:20:02 -07:00
Cinder
fe37772f2c
[Uploader] Redesign the file input (#716) 2024-08-12 02:46:32 -07:00
Donovan Daniels
0500896fd0
[AvoidPosting] Add caching, order search, and tweak modactions (#713) 2024-08-12 02:39:53 -07:00
Tarrgon
6fd03b0507
[Flags] Only show the most recent deletion flag to non-staff (#717) 2024-08-11 13:15:38 -07:00
Cinder
60f5170907
[CSS] Tweak palette text colors (#715) 2024-08-10 13:27:10 -07:00
Donovan Daniels
1b61b06bd6
[FileInput] Check file size per type (#704) 2024-08-10 12:52:50 -07:00
Cinder
03585a60bf
[PostSets] Bundle add/remove requests (#711) 2024-08-06 13:48:59 -07:00
Cinder
596fbb5d74
[Posts] Fix the quick edit form not working correctly (#710) 2024-08-06 13:42:57 -07:00
Cinder
2f0bcfeb01 [Posts] Fix broken avatars and dtext thumbnails 2024-08-05 12:34:24 -07:00
Cinder
1f63f4b9d5 [Blacklist] Redesign and rework the blacklist (#693) 2024-08-04 15:17:36 -07:00
Donovan Daniels
db02dfc582
[ApngInspector] Change length to bytesize (#708) 2024-08-04 15:14:26 -07:00
Cinder
e436458d66
[Posts] Fix mode menu add/remove from set alerts (#707)
The "Updating post (# pending)" alert was being replaced with the "Added/Removed post from set", which is unhelpful.
2024-08-04 14:05:17 -07:00
Donovan Daniels
237f79eabe
[AvoidPosting] Bug fixes and cleanup (#706) 2024-08-04 12:35:46 -07:00
Cinder
d0559a2ba9
[Posts] Fix a bug that broke voting on deleted videos (#703) 2024-08-03 17:32:37 -07:00
Donovan Daniels
8a3e70e5ca
[AvoidPosting] Integrate the avoid posting list into the site (#582) 2024-08-03 14:15:26 -07:00
Donovan Daniels
516e3391be [WikiPages] Restrict skip_secondary_validations to Janitor+ (#639) 2024-08-03 02:25:43 -07:00
Cinder
166d6ea350 [Posts] Tweak the buttons on the post navbar (#695) 2024-08-03 02:25:42 -07:00
Tarrgon
9453a82644 [DMails] Allow janitors to bypass rate limits (#696) 2024-08-03 02:25:42 -07:00
Donovan Daniels
41658607c5 [Artists] Normalize name in show & show_or_new (#636) 2024-08-03 02:25:41 -07:00
Cinder
8cf6052f91 [Misc] Fix the bug on the history page of a destroyed artist 2024-08-02 16:16:23 -07:00
Cinder
70cacaf9db [Misc] Fix misnamed theme label 2024-07-31 15:42:36 -07:00
Cinder
b7513a7c0a
[Misc] Fix the "mark all as read" confirmation text 2024-07-30 14:18:25 -07:00
Cinder
28cb8ff19b
[Artists] Fix the edit permission quirks 2024-07-29 16:12:09 -07:00
Cinder
4420fd823c [JS] Add a localStorage wrapper (#689) 2024-07-28 18:12:41 -07:00
Cinder
e53b39e428 [Blacklist] Rewrite blacklist normalization (#687)
This allows for both the optional (~) tags in the blacklist, and for the comment syntax.
2024-07-28 18:12:41 -07:00
Cinder
164f5b4851 [Posts] Standardize thumbnail attributes (#684)
Thumbnails used to have four different sets of data-attributes depending on how they were displayed.
2024-07-28 18:12:41 -07:00
Cinder
ba5b6b0fff [WikiPages] Implement basic redirects (#683) 2024-07-28 18:12:41 -07:00
Donovan Daniels
852129269b [Tickets] Refactor viewing access and add JSON API (#664)
resolves #657
2024-07-28 18:12:41 -07:00
Donovan Daniels
b3b16759c4 [PostSets/Pools] Handle metatag additions when set/pool is full (#669) 2024-07-28 18:12:41 -07:00
Cinder
7bdabdf2b4 [CSS] Clean up colors and implement colorblind palettes (#682) 2024-07-28 18:12:41 -07:00
Donovan Daniels
80f12710e6 [WikiPages] Prevent renaming wiki pages for help pages (#666) 2024-07-28 18:12:41 -07:00
Tarrgon
1425332c0b [Replacements] Allow janitor+ to auto approve submitted replacements (#650) 2024-07-28 18:12:41 -07:00
Sindrake
d0748f00bb [ForumPosts] Fix a permission bug 2024-07-22 14:22:09 -07:00
Cinder
132703b7bd
[PostVersions] Limit the "Undo Selected" to Priv+ (#678)
While it is situationally useful, it was also frequently used by tag vandals to mass-undo legitimate tag changes.
2024-07-22 01:47:29 -07:00
Sindrake
e72c0f4bd5 [Posts] Only show the webm if browser supports vp9
I'm not happy with this solution, but we might as well try it.

- Most reasonably modern browsers support vp9.
- Those that cannot can play mp4 instead.
- Browsers that support only vp8 are basically non-existent.
2024-07-21 18:04:06 -07:00
Sindrake
0e98266024 [PostSets] Fix an error caused by adding a post to a non-existent set 2024-07-21 16:24:05 -07:00
Sindrake
cc1189292c [UserFeedbacks] Fix a misnamed mod action 2024-07-21 15:20:40 -07:00
Sindrake
5fa2cd0b48 [ForumTopics] Add a confirmation before marking topics as read 2024-07-21 14:13:44 -07:00
Donovan Daniels
4a0a0c2f93
[UserFeedbacks] Add ability to soft delete feedbacks (#670) 2024-07-21 10:58:40 -07:00
Sindrake
d235ce223f [Tags] Make tag preview case insensitive 2024-07-20 16:07:55 -07:00
Sindrake
f7e47b6141 [TagQuery] Force query to lower case
Fixes #510
2024-07-20 15:46:40 -07:00
Donovan Daniels
0346f86ac7
[Artists] Convert is_active into proper deletion (#660) 2024-07-20 11:45:36 -07:00
Donovan Daniels
4ff4c3718e
[DText] Explicitly set when color is allowed in preview (#665) 2024-07-20 10:19:40 -07:00
Donovan Daniels
b28bb5c99f
[ForumTopics] Fix page number mismatch (#675)
Fixes an issue introduced in #674.
2024-07-20 09:23:26 -07:00
Sindrake
de6a38de59 [Posts] Removed the default deletion reason for child posts 2024-07-19 08:52:06 -07:00
Sindrake
98a766335a [Posts] Fix navbar overflow issues
The search query text would overflow the navbar and spill into the image itself if it's too long.
Particularly an issue on mobile devices.
2024-07-18 08:04:53 -07:00
Sindrake
40773dc696 [Posts] Only check the "Move Favorites" box when applicable 2024-07-18 02:33:15 -07:00
Sindrake
6cbe400cc5 [ESLint] Fix style complaints 2024-07-17 14:22:24 -07:00
Sindrake
82891b91d1 [ESLint] Fix core complaints 2024-07-17 11:26:58 -07:00
Donovan Daniels
8a535ebb95
[PostReplacements] Allow setting additional_source & reason in url (#667) 2024-07-16 08:10:51 -07:00
Sindrake
994494814b [Uploader] Minor fix 2024-07-15 17:37:27 -07:00
Sindrake
ca8e9406e9 [Uploader] Add more query parameters and clean up
Fixes #671 by adding query parameters for artist, character, species, and context tags, as well as the post rating.

Additionally, the inputs had incredibly counter-intuitive names. That had also been fixed.
2024-07-15 17:15:26 -07:00
Sindrake
727df848f7 [NewsUpdates] Enable API endpoint for index
Also cleaned up some auto-correctable style issues.
2024-07-15 14:01:12 -07:00
Donovan Daniels
af0036db6b
[Forums] Clean up permission checks (#674) 2024-07-14 13:14:09 -07:00
Donovan Daniels
d9f6653e02
[Posts] Overhaul destroyed posts (#672) 2024-07-13 17:05:50 -07:00
Donovan Daniels
ac0ef59b3e
[Pools] Fix ordering returning error 406 (#668)
Fixes #555
2024-07-12 08:55:35 -07:00
Sindrake
be9dae5a5d [Blacklist] Fix an error caused by a nil blacklist 2024-07-08 14:32:59 -07:00
Sindrake
1e7011b07b [PostEvents] Fix an error caused by the event action not being found 2024-07-08 10:00:14 -07:00
Sindrake
6d285957ca [Misc] Remove minor h1 and h2 mobile style tweaks
Absolutely no idea what happened here.
Both of these seem rather pointless.
2024-07-07 17:23:09 -07:00
Sindrake
807232557b [Misc] Tweak the CSS of the site notices 2024-07-07 17:02:42 -07:00
Sindrake
69207aa60d [Posts] Add a toggle for the janitor toolbar
The toolbar gets in the way when browsing the site with no intentions of handling posts.
2024-07-07 16:11:27 -07:00
Sindrake
1b31f4bda5 [Posts] Reload the page when undeleting a post 2024-07-07 14:46:46 -07:00
Sindrake
0adeff645d [Posts] Keep search params when disapproving posts
Specifically, the issue manifested when using detailed disapprovals.
2024-07-07 11:43:35 -07:00
Sindrake
df3f33ed82 [Blacklist] Always set the blacklist metatags
Not doing this breaks the anonymous blacklist, but only if the default blacklist is empty.
2024-07-02 11:18:12 -07:00
Donovan Daniels
6011b9f7bc
[Bans] Enable API for index & show (#659) 2024-06-30 09:14:37 -07:00
Donovan Daniels
6d1b15eab4
[PostEvents] Add event for changing background color (#655) 2024-06-28 09:26:01 -07:00
Tarrgon
0df2e77ab5
[Posts] Generate samples with background color (#649) 2024-06-28 09:13:52 -07:00
Donovan Daniels
4f61a94504
[StaffNotes] Fix body searching (#654) 2024-06-27 16:17:40 -07:00
faucet
715ea9bddb
[Posts] Allow some of the Related links when a post isn't visible (#648) 2024-06-27 15:39:43 -07:00
Donovan Daniels
165cd315e9
[UploadWhitelist] Make upload whitelist case insensitive (#651) 2024-06-27 15:27:08 -07:00
Sindrake
ea8c7d79ff [Posts] Fix video samples not working in iOS
Band-aid fix, but it should work for now.
Evidently, while iOS does support WEBM now, it does not handle vp9 well.
2024-06-27 09:08:50 -07:00
Earlopain
2c60ec69c8
[Prod] Replace unicorn with pitchfork
pitchfork is a unicorn fork with some things removed and some things added.
We don't need any of these things so it should be an easy replace.
There is no worker-killer for pitchfork, it is however trivial to implement ourselves.

unicorn is pretty much dead. The author implies as much in the various readme updates
he made. It also doesn't work with rack 3 and I doubt a new release will even be made.
If it will, it highly likely won't be on rubygems.
2024-05-07 21:54:25 +02:00
Earlopain
d7ece18a1c
[Posts] Fix the iqdb remove job
More faraday fallout. For delete requests, it expects this parameter to be iterable (if present)
2024-05-07 21:52:54 +02:00
Earlopain
c60ee96133
[Posts] Fix an error during uploads for 404/etc.
This line wasn't properly updated for faraday
2024-05-07 16:47:57 +02:00
Earlopain
a7ef80074d
[Cleanup] Resolve some easy ruby warnings
Mostly duplicate method warnings
2024-04-28 11:59:37 +02:00
Earlopain
0dce1e50f2
[Users] Add a reasonable length limit on emails
The spec allows for addresses up to 255. A limit of 100 impacts 3 users right now
2024-04-28 11:28:07 +02:00
Earlopain
e002cc165f
[Gems] Bump RuboCop 2024-04-28 11:05:37 +02:00
Earlopain
d01c8c131d
[Misc] Replace httparty with faraday
We already pull in faraday from opensearch-ruby.
httparty hasn't had a release in a while and it printing warnings on ruby 3.3
2024-04-27 23:01:10 +02:00
Earlopain
75ea36b700
[Cleanup] Remove unused size method from file class 2024-04-26 15:58:18 +02:00
Earlopain
b058077cf0
[Misc] Add a method that returns the base url for network requests
This makes it easier to stub in tests.
Also add a method to the iqdb proxy to say if it is enabled or not and use it everywhere.
2024-04-26 15:57:56 +02:00
Earlopain
988b607c57
Merge pull request #638 from DonovanDMC/note-previews-posts
[Notes] Remove note previews, replace with dtext previews
2024-04-21 19:40:09 +02:00
Earlopain
4df14cfec5
Merge pull request #635 from DonovanDMC/artists-new-link
[Artists] Fix "new" link in link_to_artist
2024-04-21 19:34:48 +02:00
Earlopain
75b618efc7
Merge pull request #634 from DonovanDMC/dmail-blacklist-tags
[DMails] Update "blacklisting user" tags
2024-04-21 19:33:31 +02:00
Earlopain
53d67da88d
[TagImplications] Ignore tag count limit on approve
This will apply to all automated changes, though I think only implications really need it.
2024-04-21 19:09:52 +02:00
Earlopain
6dfd8d8a7e
[Rails] Use different syntax to query if pg array contains single value
This will be broken in the next major rails version: https://github.com/rails/rails/issues/51617
2024-04-21 18:21:37 +02:00
Earlopain
8fdeb166df
[Rails] Use modern enum syntax
The current one is deprecated in the next rails version
2024-04-21 18:14:01 +02:00
Donovan Daniels
0f8ec1de53
[Notes] Remove note previews, replace with dtext previews 2024-04-18 05:31:25 -05:00
Earlopain
3229106431
[WikiPages] Fix exception on show_or_new without arg
This now uses `titled` which didn't handle nil
2024-04-12 15:11:45 +02:00
Earlopain
d2d6e83537
[Misc] Fix an exception during exception logging
This broke after the upgrade to rails 7.1 because of https://github.com/rails/rails/pull/46535
2024-04-11 19:10:57 +02:00
Donovan Daniels
7f141ae5bc
[Artists] Fix "new" link in link_to_artist 2024-04-09 21:45:00 -05:00
Donovan Daniels
8a89377845
[DMails] Update "blacklisting user" tags 2024-04-09 20:44:56 -05:00
Earlopain
0b47770c49
[Prod] Add Datadog
Let's see how this one works out. Cute logo
2024-04-09 20:16:29 +02:00
Earlopain
40ff649250
Merge pull request #631 from DonovanDMC/wikipages-normalize-title
[WikiPages] normalize title in show_or_new & edit
2024-04-09 19:56:16 +02:00
Earlopain
7cd026d18d
[Cleanup] Return a single wiki from WikiPage.titled 2024-04-09 19:50:33 +02:00
Earlopain
d40dee278d
Merge pull request #632 from DonovanDMC/fix-help-related
[HelpPages] Fix showing related only to Janitor+
2024-04-09 19:41:33 +02:00
Earlopain
d84723909c
Merge pull request #617 from DonovanDMC/normalize-tagsetpresenter-tags
[UploadPresenter] Normalize tags & strip metatags
2024-04-09 19:35:44 +02:00
Donovan Daniels
38552905e5
[HelpPages] Fix showing related only to Janitor+ 2024-04-06 07:58:11 -05:00
Donovan Daniels
9f5f981700
[WikiPages] normalize title in show_or_new & edit 2024-04-06 07:47:49 -05:00
Donovan Daniels
5edbb507b6
[UploadPresenter] Normalize tags & strip metatags 2024-04-05 23:29:19 -05:00
Cinder
75fdab1c85
[Blacklist] Increase the size of the editor window (#604)
* [Blacklist] Increase the size of the editor window

* Don't have the dialogue overflow horizontally

* Remove one min-content, looks better, same padding top to bottom

* Shrink blacklist in settings slightly. Much closer to height of dtext input now

---------

Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2024-04-05 18:46:00 +02:00
Earlopain
c2574e12d2
[Users] Add profile_about and profile_artinfo to full response 2024-04-05 17:37:39 +02:00
Earlopain
d9a055d058
[Users] Redirect to name changes when name is invalid
The more or less unintrusive message has been there for a few months now.
Start forcing a name change when accessing through a browser, ignore api for now
2024-04-05 17:33:09 +02:00
Earlopain
584f69d407
[Posts] Fix initial import including deleted notes 2024-04-05 13:18:45 +02:00
Earlopain
e3fdc5d61b
[Pools] Fix discrepancy between index page count and actual page count
One was using `user.per_page`, the other config.posts_per_page. Consolidate this
logic to `paginate_posts` to make it more obvious what's going on.
2024-04-04 22:52:49 +02:00
Earlopain
af46da355d
Merge pull request #627 from DonovanDMC/bur-duplicate-of
[BUR] Move "duplicate of" text location
2024-04-03 14:55:23 +02:00
Earlopain
e530847cf8
Merge pull request #626 from DonovanDMC/post-set-maintainers-access-check
[PostSets] Add view access check to /post_sets/:id/maintainers
2024-04-03 14:54:25 +02:00
Earlopain
d5c371dccf
[Posts] Fix missing space next to tag names
Unintentionally removed in 2609990837
2024-04-03 14:45:39 +02:00
Earlopain
3f3fd0ab4f
[Misc] Revert april fools stuff 2024-04-03 14:39:09 +02:00
Earlopain
c1aa5f95b1
[Misc] Add optout for april fools
Close #630
2024-04-01 12:24:33 +02:00
Earlopain
e2d289baca
[Misc] Add this years april fools joke
I'm so sorry
2024-03-31 13:41:13 +02:00
Donovan Daniels
42c59ac384
[BUR] Move "duplicate of" text location 2024-03-25 19:53:43 -05:00
Donovan Daniels
79e729e4f7
[PostSets] Add view access check to /post_sets/:id/maintainers 2024-03-25 17:52:35 -05:00
Earlopain
aaf1423ef8
[TagAliases] Don't change category on approve for large tags
This has caused trouble on multiple occasions. Right now, a BUR resulted in about 2 million jobs being queued.
1 mil on approve, 1 mil to switch them all back.
2024-03-23 21:24:09 +01:00
Earlopain
e4799d9f83
[Prod] Dump NewRelic
Need to look into alternatives
2024-03-23 20:52:31 +01:00
Earlopain
700bf05ba5
[Help] Fix related subnav links
Broken in 069a009dde
2024-03-23 20:46:48 +01:00
Earlopain
2e140a5607
[Posts] Use addressable for source parsing
Fixes no icons for links with square brackets
2024-03-18 18:59:19 +01:00
Earlopain
aeb2076b80
[TagAliases] Fix locked artist preventing approval
Everything is already scoped to the approver. Switching to the creator doesn't make much sense here.

In addition, this sent the success message 5 times because the rename happened at the wrong place
2024-03-17 19:16:01 +01:00
Earlopain
201292a00a
[PostVersions] Make tag scripting box visible to moderators 2024-03-17 19:16:01 +01:00
Earlopain
f480e8cbb5
[PostVersions] Prevent obsolete tags breaking after -
I tested this since it looked weird to me and arrived at the conclusion that this always has been this way.
That conclusion was wrong, I probably looked at something cached.
2024-03-17 19:16:01 +01:00
Donovan Daniels
2609990837
Convert Tag links in PostVersions & Uploads to wiki links (#622) 2024-03-03 20:43:30 +01:00
Earlopain
1da52e3d0d
[TagRelations] Fix rejecting in certain cases
Rejection should always be possible
Previously this skipped validations, now it doesn't
2024-03-03 20:35:28 +01:00
Earlopain
853790272b
[Posts] Allow excluding multiple ids in search 2024-03-03 20:04:02 +01:00
Earlopain
d9fe9a7602
[TagRelations] Don't allow multiple rejects from admins 2024-03-03 12:37:40 +01:00
Earlopain
93d759671c
[Misc] Fix webpacker compilation of files only required with require.context
I don't believe this is intentional behaviour but it's also not getting any udpates anymore
This at least makes it work
2024-03-03 12:20:22 +01:00
Earlopain
ae105140f1
[BURs] Only allow approving if pending 2024-03-03 12:04:56 +01:00
Earlopain
c111421303
[Posts] Fix day/week/month not line-breaking on the popular page
This previously had whitespace that I unintentionally removed. This also has the unintentional sideeffect
of not breaking up individual prev/scale/next links which I see as an improvement.

Remove a margin override for the first entry, this wasn't properly centered for some reason.
Still not quite there but much better now.
2024-02-28 20:13:12 +01:00
Cinder
74e3286779
[Misc] External favicon tweaks (#621)
* Address the baraag/mastodon icon situation

* Add a blogspot.com icon

* Add a yiff.life icon

* Add a nijie.info icon

* Add an f-list.net icon

* Fix the issue with the AO3 icon

* Add a couple of aliases for existing icons

* Misnamed AO3 file

* Add a wordpress.com icon

* Add a wikimedia.org icon

* Add a furbooru.org icon

* Add an alias to the Patreon CDN

* Remove the t.co - t.me alias

* Misnamed wikimedia.org file

* Add a fandom.com icon

* Add an exhentai.org alias
2024-02-28 17:55:00 +01:00
Earlopain
bd87b4b29c
[PostVersions] Fix the obsolete class being applied to the link 2024-02-28 17:45:23 +01:00
Earlopain
17b99821e3
[Posts] Fix searches for huge ids erroring
This is because they can exceed Integer.MAX_VALUE on the opensearch side
2024-02-28 17:25:54 +01:00
Earlopain
7c03dddc56
[Pools] Fix exception on the ordering page
Broken through 0381653e80
2024-02-27 18:37:22 +01:00
Earlopain
a3a508c92c
[Takedowns] Fix vericode for frozen string literals
Will add some tests later
2024-02-27 17:32:34 +01:00
Earlopain
2c41373304
[Forum] Fix text for failed aliases/implications 2024-02-27 17:22:53 +01:00
Earlopain
4acddd5941
[Admin] Allow searching by exception class 2024-02-27 15:52:38 +01:00
Earlopain
2d7e507555
[Posts] Show an icon for non-matches urls 2024-02-27 15:48:52 +01:00
Earlopain
dbd5f8399b
[Artists] Add favicon to disabled urls 2024-02-26 19:14:49 +01:00
Earlopain
e1a2c8697e
[Posts] Improve source favicon display on mobile
Makes them somewhat fit to the font instead of being left at 16px
2024-02-26 19:09:45 +01:00
Earlopain
a816ee3b34
[BURs] Don't use tag_string_diff for tag nuking
This doesn't have the same issue as mass updates, but
it doesn't hurt to change this away from tag_string_diff as well

Aliases/Implications still do this but considering this has been the case
for 4 years now I don't believe this to be a problem
2024-02-26 16:56:20 +01:00
Earlopain
ca56ef3529
[BURs] Fix mass updates when the tag has been aliased away
Resolving aliases here is not great. Just mass update nothing in these cases, that's much safer.

Using tag_string_diff also wasn't a very bright idea, this too can result in both tags being removed
2024-02-26 16:48:25 +01:00
Earlopain
e0b52c13af
[PostVersions] Fix display of unchanged locked tags
2352bf54f6 (r139054663)
2024-02-26 12:48:58 +01:00
Cinder
e1e4b94a50
[Misc] External link favicons (now without a spritesheet) (#610)
* [Misc] Add favicons to some external links

* RuboCop changes from master

* Use packs for favicon images

This works better with caching.
If the file changes, the url changes

* Add favicons to an artists domain list

* Fix aliases

The lookup is done by strings, the keys were symbols

* Add old deviantart cdn alias

* Guard against links with that parse down to no host

http:twitter.com for example

* Tweak flow

* Add basic tests, fix some of what I probably broke

---------

Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2024-02-25 20:27:54 +01:00
Earlopain
fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00
Earlopain
bc06f8cea2
[Misc] Fix all remaining (hopefully) issues with frozen string literals
+"" is a bit of a copout, that could be done better but very easy to do in these more complicated cases
2024-02-25 16:41:35 +01:00
Earlopain
4975c1f717
[Wiki] Fix show for frozen string literals
Move the alias/implication list to a partial
2024-02-25 15:48:52 +01:00
Earlopain
9b59c860ff
[Cleanup] Add helper method for show_or_new_wiki_pages_path 2024-02-25 15:22:33 +01:00
Earlopain
5ac5b85150
[Posts] Move flag display to partial 2024-02-25 14:44:55 +01:00
Earlopain
19932adc7b
[Pools] Fix versions index for frozen string literals 2024-02-25 14:15:26 +01:00
Earlopain
5140bea658
[Pools] Simplify pool versions post changes
It unconditionally took values from the passed pool version
2024-02-25 14:14:30 +01:00
Earlopain
3f57ed5c6d
[Posts] Fix popular (and more) for frozen string literals 2024-02-25 13:41:58 +01:00
Earlopain
2352bf54f6
[PostVersions] Fix index for frozen string literals 2024-02-25 13:19:35 +01:00
Earlopain
930b4b905c
[Pools] Fix show/gallery for frozen string literals
Get rid of the presenters/post sets.
2024-02-25 11:38:55 +01:00
Earlopain
0381653e80
[Pools] Use paginate method for posts 2024-02-24 19:57:29 +01:00
Earlopain
b02b2353e7
[Pools] Always disallow duplicate posts
20 pools have this, 18 of those by accident. Series/collection distinction makes little sense for e6
2024-02-24 19:05:48 +01:00
Earlopain
5560829b0b
[Blacklist] Fix breakage on posts with a single tag containing only numbers
https://api.jquery.com/data/
> Every attempt is made to convert the attribute's string value to a JavaScript value (this includes booleans, numbers, objects, arrays, and null)
Why
2024-02-23 18:07:01 +01:00
Earlopain
5a139969dd
[Users] Move view-only code to helper 2024-02-23 17:23:25 +01:00
Earlopain
6c623496a2
[Users] Stop using has_mail bitflag 2024-02-23 17:18:22 +01:00
Earlopain
b042ce8dd0
[Users] Don't automatically add all boolean attributes to json 2024-02-23 17:11:40 +01:00
Earlopain
457c59c3c6
[Users] Mark unused bitprefs via underscore 2024-02-23 17:06:50 +01:00
Earlopain
56e849695b
[Cleanup] Remove readonly only
Since its introduction 3 years ago, it got used once I believe
I can't even say if this properly works anymore.

If something like that is actually desired in the future, it should just be a whitelist instead
2024-02-23 16:48:56 +01:00
Donovan Daniels
6b2b2cfc14
[DMails] Add marking as unread (#620)
* [DMails] Add marking as unread

* Tweak wording to be same as "Mark all as read", dmail capitalization
2024-02-23 16:39:59 +01:00
Earlopain
f59399ed67
[TagRelationships] Fix aliases/implications being left in queued state
This wasn't going through the error handler
2024-02-22 17:38:51 +01:00
Earlopain
066c7559c2
[Users] Add a not about the sensitivity of api keys 2024-02-19 20:18:56 +01:00
Earlopain
b18e921174
[Posts] Show a nicer error message on upload if redis is down 2024-02-19 16:32:58 +01:00
Earlopain
bab944ba95
[Users] Remove API limits column
Hardy useful, breaks user profiles if redis is down
2024-02-19 16:22:18 +01:00
Earlopain
c9fa546fb3
[Cleanup] Remove deny_transitives from tag alias approve!
Passing true would error because the error class doesn't exist.
BURs check this condition right before.
2024-02-17 12:12:39 +01:00
Earlopain
16de61c044
[Help] Sort entries by their displayed title 2024-02-15 20:11:44 +01:00
Earlopain
069a009dde
[Cleanup] Refactor help pages
The code wasn't very easy to follow. Uses the hip new normalized method from Rails 7.1
Adds some barebones tests
2024-02-15 20:05:36 +01:00
Earlopain
192fb2c1ed
[Discord] Fix counts for AIBUR report 2024-02-15 17:00:31 +01:00
Earlopain
43ade626e0
[AIBUR] Fix ModActions for implications and on alias reject 2024-02-15 16:58:47 +01:00
Earlopain
feb205204b
Merge pull request #596 from DonovanDMC/forum-post-vote-fix
[ForumPosts] Fix voting buttons
2024-02-14 19:46:09 +01:00
Donovan Daniels
0702b4fd19
[AIBUR] Link to forum post & show votes in show action (#601)
* [AIBUR] Link to forum post & show votes in `show` action

* Use strict locals, they are pretty cool

Also clarify the purpose of the new parameter

* Only show voting box when any votes are present

Looks weird otherwise

* Move the list into the partial

* Remove voting link on show page

* Uniform display on forum/show page

Display the votes inline, like on forum posts

---------

Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2024-02-14 19:17:54 +01:00
Earlopain
5759cc4103
Merge pull request #615 from Sindrake/forum-topic-background
[ForumTopics] Fix deleted topic row colors
2024-02-14 16:37:36 +01:00
Earlopain
a28a346a20
[ForumTopics] Consistently use is-hidden over is-deleted 2024-02-14 16:33:02 +01:00
Donovan Daniels
b89fc1428e
[Comments] Add "Post Uploader" to search options (#598)
* [Comments] Add "Post Uploader" to search options

* Use block with where_user
2024-02-14 16:10:45 +01:00
Cinder
8bd98d2e8c
[Dmails] Increase title input length (#612)
* [Dmails] Increase title input length

* Fix remaining rubocop things
2024-02-14 15:51:27 +01:00
Earlopain
1a7df4a497
[Misc] Use libvips provided color profile 2024-02-04 16:42:43 +01:00
Sindrake
3a3b7b2a82 [ForumTopics] Fix deleted topic row colors 2024-02-01 12:17:27 -08:00
Earlopain
1c53597178
Merge branch 'master' into rails-7.1 2024-01-27 14:05:08 +01:00
Donovan Daniels
e32718dd3d
[PostSets] Fix excluding all root level parameters (#603) 2024-01-27 13:52:35 +01:00
Earlopain
79427ef36c
[Rails] Enable raise_on_missing_callback_actions for dev/test 2024-01-26 22:43:24 +01:00
Earlopain
e10f308728
Merge pull request #600 from Sindrake/comment-visibility-fix
[Comments] Fix the show_hidden_comments setting
2024-01-26 16:52:46 +01:00
Sindrake
2b3c9c3a10 [Comments] Fix the show_hidden_comments setting 2024-01-26 07:45:55 -08:00
Earlopain
fe5434e157
[Comments] Fix own hidden comments visible on index if show_hidden_comments == false 2024-01-26 16:38:52 +01:00
Earlopain
a7228612a2
[Rails] Update to 7.1
Run `app:update`, fix the one deprecation warning
2024-01-25 22:05:29 +01:00
Earlopain
10e3f1662a
[Posts] Fix fav buttons in the sidebar 2024-01-25 18:51:51 +01:00
Earlopain
0fad5d5659
[Comments] Fix exception when searching by poster_id
Caused by 2c832dc633
poster_id requires a join and these columns weren't fully qualified.
2024-01-25 18:47:26 +01:00
Donovan Daniels
4eaffca71e
[ForumPosts] Fix voting buttons
* Fix all buttons disappearing when voting on one post
* Fix clicking outside of `i` element failing to vote
2024-01-23 18:54:01 -06:00
Earlopain
2c832dc633
[Comments] Show hidden sticky comments to Janitors 2024-01-22 19:26:00 +01:00
Earlopain
9ec5ab3e1d
[Comments] Simplify hidden method
Instead of having the cognitive load of checking if this is indeed the inverse of `visible`, just wrap it all in sql not
I'd love to have rails take care of this but haven't found something for that
2024-01-22 19:20:40 +01:00
Earlopain
c4bd8e961f
[Comments] Simplify should_see? 2024-01-22 18:57:44 +01:00
Earlopain
23fcee2356
[Comments] Allow janitor to sticky 2024-01-22 17:52:48 +01:00
Donovan Daniels
465a91a69f
[PostVersions] Allow searching for only uploads (#595)
* [PostVersions] Allow searching for only uploads

* include_blank: true
2024-01-22 17:30:42 +01:00
Cinder
f5aa020ad3
[Tickets] Add warnings to the comment report form (#588)
* [Tickets] Add warnings to the comment report form

* [Tickets] Add warnings to blip and forum reports

* Indent
2024-01-21 20:10:43 +01:00
Earlopain
5252153b73
Merge pull request #591 from Sindrake/post-type-in-info
[Posts] Show file type in the post sidebar
2024-01-21 19:51:38 +01:00
Earlopain
15728b2862
Merge pull request #593 from Sindrake/belarussian-fix
[Users] Update Belarussian welcome message
2024-01-21 19:50:30 +01:00
Earlopain
1b982f64e1
[PostVersions] Downcase tag query
Allows searches like `Hi_res` to function
2024-01-21 17:56:47 +01:00
Earlopain
ae96db548e
[Cleanup] Avoid nested methods
These are redefined every time the enclosing method is called
2024-01-21 17:55:11 +01:00
Earlopain
dd7106ed2d
[Discord] Add a report for AIBURs 2024-01-21 17:28:46 +01:00
Sindrake
048da4ea92 [Users] Update Belarussian welcome message 2024-01-19 17:51:23 -08:00
Sindrake
8d96a5194a [Posts] Show file type in the post sidebar 2024-01-16 04:07:22 -08:00
Earlopain
b0b5e2a7a7
Merge pull request #576 from DonovanDMC/post-sets-missing-postids
[PostSets] require post_ids[] for adding/removing posts
2024-01-14 21:08:21 +01:00
Donovan Daniels
8f8feac8aa
[Artists] Show error when changing notes with locked wiki page (#580)
* [Artists] Show error when changing notes with locked wiki page

* [Tests] Add tests for editing artists with locked wiki pages
2024-01-14 21:01:01 +01:00
Earlopain
8e94b9776e
[Discord] Generalize reports a bit more 2024-01-14 13:39:57 +01:00
Cinder
49cf270d90
[Posts] Tweak the janitor toolbar (#589)
* [Posts] Tweak the janitor toolbar

* [Posts] Remove the duplicate count from the modbar

* [Posts] More tweaks to the janitor toolbar

Based on the input from the janitors themselves.

* Linting
2024-01-14 12:38:02 +01:00
Earlopain
1fed677a45
[Tickets] Make response mandatory 2024-01-14 12:36:37 +01:00
Earlopain
bca7d2cdd0
[Posts] HIde the pending info-notice when user can approve 2024-01-14 12:19:17 +01:00
Earlopain
cd188a797f
[Tests] Handle empty git hash
The app directory isn't marked as safe => a test fails for accessing nil
Not sure how there's only 1 test failing because of this.
Either way, this is more correct
2024-01-12 22:56:20 +00:00
Earlopain
7c53f9331b
Merge pull request #584 from Sindrake/post-toolbar-fix
[Posts] Fix post toolbar styles on mobile devices
2024-01-11 19:29:00 +01:00
Sindrake
bbd5ca5a39 [Posts] Add icons to some toolbar buttons 2024-01-11 09:51:03 -08:00
Earlopain
2c03ccf681
Merge pull request #581 from DonovanDMC/add-user-feedback-updater
[UserFeedback] Add Updater
2024-01-11 17:29:45 +01:00
Earlopain
40792f6d43
[Discord] Add moderator report 2024-01-09 17:24:48 +01:00
Earlopain
3e1af2183a
[Discord] Move some things for discord webhook to base class 2024-01-09 17:12:43 +01:00
Earlopain
a12b8d0d03
[Users] Remove outdated note about hidden favs in settings 2024-01-09 17:12:33 +01:00
Sindrake
21759d0845 [Posts] Fix post toolbar styles on mobile devices 2024-01-06 08:46:07 -08:00
Donovan Daniels
c11ad6b874
[UserFeedback] Add Updater 2024-01-04 14:31:54 -06:00