about summary refs log tree commit diff
path: root/app/workers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-08-08 10:23:05 -0500
committermultiple creatures <dev@multiple-creature.party>2019-08-08 12:46:23 -0500
commit4283f15493a65ee4a0f2f98ae627c109c027ff4d (patch)
treea3908c15994879fd2b0742a717ff2e850b1f78be /app/workers
parent4dfc40324b1f3b20550982621501e162d2ed3bed (diff)
admin transparancy log - support markdown
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/log_worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/log_worker.rb b/app/workers/log_worker.rb
index d3d22c88e..f6a837153 100644
--- a/app/workers/log_worker.rb
+++ b/app/workers/log_worker.rb
@@ -5,7 +5,7 @@ class LogWorker
 
   sidekiq_options unique: :until_executed
 
-  def perform(log_text, scope = nil)
+  def perform(log_text, scope: nil, markdown: false)
     logger_id = ENV['LOG_USER'].to_i
     return true if logger_id == 0
 
@@ -22,7 +22,7 @@ class LogWorker
       tags: [tag],
       visibility: :unlisted,
       local_only: true,
-      content_type: 'text/plain',
+      content_type: markdown ? 'text/markdown' : 'text/plain',
       language: 'en',
       nocrawl: true,
       nomentions: true,