diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-30 21:32:11 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-11-30 21:34:59 +0100 |
commit | 14bd46946d25186044485aa101dd2da976b61181 (patch) | |
tree | 94b59b79d06165469a103b9391ddfaee537e0cab /app/models/concerns | |
parent | 1b447c190eb47117e99ff1e3c754f9cc461202f1 (diff) |
Per-status control for unlisted mode, also federation for unlisted mode
Fix #233, fix #268
Diffstat (limited to 'app/models/concerns')
-rw-r--r-- | app/models/concerns/obfuscate_filename.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/models/concerns/obfuscate_filename.rb b/app/models/concerns/obfuscate_filename.rb deleted file mode 100644 index dc25cdbc2..000000000 --- a/app/models/concerns/obfuscate_filename.rb +++ /dev/null @@ -1,16 +0,0 @@ -module ObfuscateFilename - extend ActiveSupport::Concern - - class_methods do - def obfuscate_filename(*args) - before_action { obfuscate_filename(*args) } - end - end - - def obfuscate_filename(path) - file = params.dig(*path) - return if file.nil? - - file.original_filename = "media" + File.extname(file.original_filename) - end -end |