Commit Graph

86 Commits

Author SHA1 Message Date
edshot99
01d9e47d0a Merge branch 'master' into master2 2025-01-16 19:56:41 -06:00
clragon
29b98e5002
[StaffNotes] Add updating and deleting (#823) 2025-01-12 19:28:32 -08:00
edshot99
1030efab9d fix up title and bring back post status 2024-12-08 05:33:34 -06:00
edshot99
c5edb7fa41 Merge branch 'master' into master2 2024-12-08 05:27:58 -06:00
Cinder
f995714992
[Posts] Rewrite the thumbnail styles (#796)
Fixes #791 and #781
2024-11-18 08:38:22 -08:00
edshot99
6051f187ea rubocop 2024-11-03 23:11:43 -06:00
edshot99
b7fee5fe2f add title support 2024-10-30 18:52:53 -05:00
Cinder
726a361b00 Revert "[Posts] Show verified uploaders to everyone (#723)"
This reverts commit 2738ccfb62.
2024-09-11 16:33:18 -07:00
Tarrgon
2738ccfb62
[Posts] Show verified uploaders to everyone (#723) 2024-09-01 11:32:53 -07:00
Donovan Daniels
0500896fd0
[AvoidPosting] Add caching, order search, and tweak modactions (#713) 2024-08-12 02:39:53 -07:00
Cinder
1f63f4b9d5 [Blacklist] Redesign and rework the blacklist (#693) 2024-08-04 15:17:36 -07:00
Donovan Daniels
8a3e70e5ca
[AvoidPosting] Integrate the avoid posting list into the site (#582) 2024-08-03 14:15:26 -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
Donovan Daniels
4a0a0c2f93
[UserFeedbacks] Add ability to soft delete feedbacks (#670) 2024-07-21 10:58:40 -07:00
Donovan Daniels
0346f86ac7
[Artists] Convert is_active into proper deletion (#660) 2024-07-20 11:45:36 -07:00
Donovan Daniels
6d1b15eab4
[PostEvents] Add event for changing background color (#655) 2024-06-28 09:26:01 -07: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
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
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
Donovan Daniels
b330a5f579
[ModActions] Ban Update Mod Action (#539)
* [ModActions] Ban Update Mod Action

* Add back accidentally removed newline

* Log expiration for user_ban_update ModAction

The duration in days makes sense on creation but it falls apart when updating
For this to correctly work the duration needs to be persisted as well
which it isn't at the moment.

---------

Co-authored-by: Earlopain <14981592+Earlopain@users.noreply.github.com>
2023-12-04 19:09:35 +01:00
Earlopain
c95dd472ac
[ModActions] Handle old permabans 2023-11-02 23:28:57 +01:00
Earlopain
68a57dc70b
[ModActions] Handle legacy level changes 2023-10-30 16:36:35 +01:00
Earlopain
c51029ea1e
[ModActions] Stop logging name changes
These are not mod actions, anybody can do that. Only log when admins
force change names.
Don't show old/new names, we already don't show that on user profiles.
2023-09-04 23:02:14 +02:00
Earlopain
9203dcdb82
[Posts] Add a method to get tags that a post is tagged with
Better performance than the regex as well
2023-09-03 18:24:40 +02:00
Earlopain
08bb60abc3
[Cleanup] Remove useless XML serializer includes
We can also remove to_xml from the `ApplicationDecorator` since there
is nothing that is or will be returning XML.
2023-08-18 19:50:34 +02:00
Earlopain
9e6ac153f2
[Cleanup] Replace usage of content_tag(:abc) with tag.abc
Most places use this syntax, be consistent about it
2023-08-06 18:37:37 +02:00
Earlopain
8ec4027d58
[Cleanup] Use actual characters instead of html entities
Converts almost all, except a few were they make sense like nbsp
2023-08-06 18:07:15 +02:00
Earlopain
85206a4023
[Search] Refactor pagination code
* Get rid of the individual extending for active_record
* Pass the pagination mode all the way down, especially in PaginatedArray
* Match PaginatedArray params to the base extensions
* Don't load total_count unless needed, mainly for api access

This should hopefully make it easier to understand
2023-05-29 18:36:46 +02:00
Donovan Daniels
0cea3d85ba
[ModActions] Revise report_reason_update & user_feedback_create (#521)
* [ModActions] report_reason_update: log description changes

* [ModActions] user_feedback_update: log reason/type changes

* [ModActions] Tweak display of feedback changes

---------

Co-authored-by: Earlopain <earlopain@protonmail.com>
2023-05-16 18:49:50 +02:00
Donovan Daniels
6100f8f0d0
[Posts]: Hide disabled comments info better (#507)
* [Posts]: Hide disabled comments info better

* use method, remove nullable check, remove from api

* I hate rubocop so much

* missed these two
2023-05-10 18:39:38 +02:00
Earlopain
7c0fec2be9
[ModActions] Display ip ban subnet and reason 2023-04-06 15:49:46 +02:00
Earlopain
18e809937f
[ModActions] Fix artist rename/unlink
Also removes the unsed wiki_page_undelete action
Part of #488
2023-03-23 20:14:17 +01:00
Earlopain
536f5c1e33
[Replacements] Generate PostEvent on promoted post 2023-02-03 19:47:52 +01:00
Earlopain
df703a1c90
[Posts] Remove "captioned" css class from post previews
It's always set and serves no purpose
2022-12-25 19:52:38 +01:00
Earlopain
ec776aa0c9
[Cleanup] Remove duplicate Diff::LCS code
The wiki page presenter wasn't used, and other_names from wiki page versions
is also unused.
That makes the remaing two implementations functionally the same.
2022-11-26 20:19:23 +01:00
Zwagoth
d35c33f437
Merge pull request #442 from zwagoth/mascots
Dynamic Mascots
2022-10-19 18:22:38 -04:00
Earlopain
2f69a127c7
[Takedowns] Create ModAction on delete 2022-10-17 15:59:29 +02:00
Earlopain
b5fbc1e2eb
[Home] Add dynamic mascots 2022-10-15 21:40:40 +02:00
Earlopain
f4dafb348f
[PostVersions] Fix not switching to seq when max_results is reached 2022-10-14 22:07:19 +02:00
Earlopain
72460f1254
[BURs] Add tag nuke option for admins 2022-10-01 21:37:00 +02:00
Earlopain
5ba3408ce2
[BURs] Fix mass_update not appearing in the mod actions
It requires CurrentUser to be set
2022-10-01 19:27:52 +02:00
Earlopain
e830c11ae9
[Cleanup] Remove raw post index param 2022-09-29 16:10:04 +02:00
Earlopain
eb5d001b55
[Posts] Remove the modqueue
Truly the end of an era. This page was trash and nobody was using it.
This will make it easier to make changes to the approval flow people actually use.
2022-09-13 16:14:00 +02:00
Earlopain
7e33ea8271
[Cleanup] Remove pool is_deleted
Pools are hard-deleted now. There are also a few pools with this flag
which can't be properly deleted at the moment
2022-07-11 22:52:26 +02:00
Earlopain
4168692f2d
[PostSets] Fix exception on admin update
This code path had a few issues which weren't triggered previously.
Also changes the visibility change modaction to track the new visibility.
2022-05-23 18:18:26 +02:00
Earlopain
ff2c3adb79
[ModActions] Fix wrong order of whitelist update pattern 2022-04-21 18:45:03 +02:00
Earlopain
4d699e465c
[Help] Normalize name
Fixes #381
2022-03-21 13:56:53 +01:00
Earlopain
ee8fb64861
[Cleanup] Remove ugoira 2022-03-16 17:08:40 +01:00
Earlopain
a7de562385
Revert "[Cleanup] Remove post report reasons"
This reverts commit 6b6e19db38.
2022-03-08 11:32:18 +01:00
Earlopain
57a9c728dc
[ModActions] Log when user is linked to artists 2022-03-06 15:38:08 +01:00