5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 19:16:23 +00:00

feat: migas de pan para actores

This commit is contained in:
f 2024-03-15 14:01:00 -03:00
parent d7f898c1ae
commit 86ba17328d
No known key found for this signature in database

View file

@ -5,6 +5,11 @@ class ActorModerationsController < ApplicationController
include ModerationConcern
include ModerationFiltersConcern
before_action :authenticate_usuarie!
breadcrumb -> { current_usuarie.email }, :edit_usuarie_registration_path
breadcrumb 'sites.index', :sites_path, match: :exact
ActorModeration.events.each do |actor_event|
define_method(actor_event) do
authorize actor_moderation
@ -26,9 +31,13 @@ class ActorModerationsController < ApplicationController
# Ver el perfil remoto
def show
breadcrumb I18n.t('moderation_queue.index.title'), site_moderation_queue_path(site)
@remote_profile = actor_moderation.actor.content
@moderation_queue = rubanok_process(site.activity_pubs.where(actor_id: actor_moderation.actor_id),
with: ActivityPubProcessor)
breadcrumb @remote_profile['name'], ''
end
def action_on_several