mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 00:36:21 +00:00
feat: migas de pan para actores
This commit is contained in:
parent
d7f898c1ae
commit
86ba17328d
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue