-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AO3-6563 Attach HTML download copies of works to abuse tickets (#4748)
* AO3-6563 Attach work download on abuse report * AO3-6563 Fix? * AO3-6563 Tidy * AO3-6563 Revert "AO3-6563 Fix?" This reverts commit 09ab379. * AO3-6563 Correct method name * AO3-6563 Make rubodog happy * AO3-6563 Make rubodog happy 2 * AO3-6563 Tidy suggested * AO3-6563 Fixes * AO3-6563 Add a new test for feedback reporter * Update abuse_report.rb * AO3-6563 Feedback * AO3-6563 Fix test
- Loading branch information
Showing
8 changed files
with
117 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class ReportAttachmentJob < ApplicationJob | ||
def perform(ticket_id, work) | ||
download = Download.new(work, mime_type: "text/html") | ||
html = DownloadWriter.new(download).generate_html | ||
reporter.send_attachment!(ticket_id, html) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters