5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 06:04:17 +00:00

fixup! feat: fedipact

This commit is contained in:
f 2024-03-19 09:49:34 -03:00
parent b90f886446
commit c047858a6f
No known key found for this signature in database

View file

@ -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