5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 17:56:22 +00:00

feat: dummy data #15076

This commit is contained in:
maki 2024-01-31 15:41:12 -03:00
parent a17a3dc700
commit b763084474

View file

@ -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