mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 17:06:22 +00:00
fixup! feat: fedipact
This commit is contained in:
parent
b90f886446
commit
c047858a6f
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
# Agrega threads.net a las listas de bloqueo
|
||||
class AddFedipactToFediblocks < ActiveRecord::Migration[6.1]
|
||||
def up
|
||||
change_column :activity_pub_fediblocks, :download_url, :string, null: true
|
||||
|
||||
fedipact =
|
||||
ActivityPub::Fediblock.create(
|
||||
hostnames: %w[threads.net],
|
||||
|
@ -21,5 +23,6 @@ class AddFedipactToFediblocks < ActiveRecord::Migration[6.1]
|
|||
def down
|
||||
fedipact = ActivityPub::Fediblock.find_by(url: 'https://fedipact.online/').delete
|
||||
FediblockState.where(fediblock_id: fedipact.id).delete_all
|
||||
change_column :activity_pub_fediblocks, :download_url, :string, null: false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue