mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 16:56:21 +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
|
# Agrega threads.net a las listas de bloqueo
|
||||||
class AddFedipactToFediblocks < ActiveRecord::Migration[6.1]
|
class AddFedipactToFediblocks < ActiveRecord::Migration[6.1]
|
||||||
def up
|
def up
|
||||||
|
change_column :activity_pub_fediblocks, :download_url, :string, null: true
|
||||||
|
|
||||||
fedipact =
|
fedipact =
|
||||||
ActivityPub::Fediblock.create(
|
ActivityPub::Fediblock.create(
|
||||||
hostnames: %w[threads.net],
|
hostnames: %w[threads.net],
|
||||||
|
@ -21,5 +23,6 @@ class AddFedipactToFediblocks < ActiveRecord::Migration[6.1]
|
||||||
def down
|
def down
|
||||||
fedipact = ActivityPub::Fediblock.find_by(url: 'https://fedipact.online/').delete
|
fedipact = ActivityPub::Fediblock.find_by(url: 'https://fedipact.online/').delete
|
||||||
FediblockState.where(fediblock_id: fedipact.id).delete_all
|
FediblockState.where(fediblock_id: fedipact.id).delete_all
|
||||||
|
change_column :activity_pub_fediblocks, :download_url, :string, null: false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue