Commit Graph

11067 Commits

Author SHA1 Message Date
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
Earlopain
979e2e4d5f
[Tests] Add basic tests for takedowns
Would have ccaught the breakage from frozen string literals
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
45fd9d52a8
[RuboCop] Disallow logging in tests
Don't want these committed
2024-02-27 16:18:01 +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
d4083e1410
[Rubocop] Regenerate todo
1011 files inspected, 5302 offenses detected, 5067 offenses autocorrectable
2024-02-23 18:12:31 +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