Add post groups support with new controllers, views, and policies

This commit introduces comprehensive support for post groups across different domains:
- Created PostGroupsController to handle viewing post groups
- Added new views for displaying post groups and their associated posts
- Implemented policies for post groups
- Enhanced models to support post group functionality
- Updated routes to support post group navigation
- Added helper methods for post group interactions
- Improved GoodJob argument rendering for post groups

The changes provide a unified way to view and interact with post collections across different domains like Inkbunny and E621.
This commit is contained in:
Dylan Knutson
2025-02-14 22:03:01 +00:00
parent 5737e5790e
commit 1d7a373d73
54 changed files with 704 additions and 223 deletions

View File

@@ -176,15 +176,6 @@ namespace :fa do
puts "#{Time.now} - browse_page_job - Domain::Fa::Job::BrowsePageJob"
end
desc "run a single home page job"
task home_page_job: %i[set_logger_stdout environment] do
Domain::Fa::Job::HomePageJob.set(
priority: -20,
queue: "manual",
).perform_later({})
puts "#{Time.now} - home_page_job - Domain::Fa::Job::HomePageJob"
end
desc "run a single post scan job"
task scan_post_job: %i[set_logger_stdout environment] do |t, args|
fa_id = ENV["fa_id"] || raise("must provide fa_id")