Welcome to mirror list, hosted at ThFree Co, Russian Federation.

exported_user.rb « uploaders « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3fc0172e6bddf263024263fce1354437a840fe22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
#   licensed under the Affero General Public License version 3 or later.  See
#   the COPYRIGHT file.

class ExportedUser < SecureUploader
  def store_dir
    "uploads/users"
  end

  def extension_allowlist
    %w[gz]
  end

  def filename
    "#{model.username}_diaspora_data_#{secure_token}.json.gz" if original_filename.present?
  end
end