Add support for fediverse:creator OpenGraph tag (#30398)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2024-05-29 01:34:33 +02:00
1 parent 4a77e477ee
commit 128987eded
11 files changed
+105 -15

No files matched your search

@@ -0,0 +1,10 @@
# frozen_string_literal: true
class AddAuthorAccountIdToPreviewCards < ActiveRecord::Migration[7.1]
disable_ddl_transaction!
def change
safety_assured { add_reference :preview_cards, :author_account, null: true, foreign_key: { to_table: 'accounts', on_delete: :nullify }, index: false }
add_index :preview_cards, :author_account_id, algorithm: :concurrently, where: 'author_account_id IS NOT NULL'
end
end