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

fix: poder deseleccionar todos los fediblocks

This commit is contained in:
f 2024-02-28 15:45:58 -03:00
parent 670d6063e5
commit 7521f598a6
No known key found for this signature in database

View file

@ -4,7 +4,6 @@
class FediblockStatesController < ApplicationController class FediblockStatesController < ApplicationController
# Realiza cambios en las listas de bloqueo # Realiza cambios en las listas de bloqueo
def action_on_several def action_on_several
if fediblock_states_ids.present?
# Encontrar todas y deshabilitar las que no se enviaron # Encontrar todas y deshabilitar las que no se enviaron
site.fediblock_states.all.find_each do |fediblock_state| site.fediblock_states.all.find_each do |fediblock_state|
if fediblock_states_ids.include? fediblock_state.id if fediblock_states_ids.include? fediblock_state.id
@ -13,7 +12,6 @@ class FediblockStatesController < ApplicationController
fediblock_state.disable! fediblock_state.disable!
end end
end end
end
# Bloquear otras instancias # Bloquear otras instancias
if custom_blocklist.present? if custom_blocklist.present?