mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 21:36:21 +00:00
feat: dummy data #15076
This commit is contained in:
parent
a17a3dc700
commit
b763084474
1 changed files with 10 additions and 0 deletions
|
@ -27,6 +27,15 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
private
|
||||
# Traer datos de muestra de la cola de moderación
|
||||
def dummy_data
|
||||
@moderation_queue = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'moderation_queue.yaml')))
|
||||
@remote_profile = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'remote_profile.yaml')))
|
||||
@instances = YAML.safe_load(File.read(Rails.root.join('db', 'seeds', 'instances.yaml')))
|
||||
@moderation_queue.each do |activity|
|
||||
activity['attributedTo'] = @remote_profile
|
||||
end
|
||||
end
|
||||
|
||||
def notify_unconfirmed_email
|
||||
return unless current_usuarie
|
||||
|
@ -117,4 +126,5 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
sites_path
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue