Ignore previous old ones

pull/32841/head
Matt Jankowski 2024-11-11 11:38:39 -05:00
parent 7e68a1c8bb
commit 95cd62b8d1
2 changed files with 3 additions and 3 deletions

View File

@ -196,7 +196,7 @@ class FeedManager
.where.not(account: into_account.following)
.tagged_with_none(TagFollow.where(account: into_account).pluck(:tag_id))
scope.select(:id, :reblog_of_id).reorder(nil).find_each do |status|
scope.select(:id, :reblog_of_id).reorder(nil).find_each do |status|
remove_from_feed(:home, into_account.id, status, aggregate_reblogs: into_account.user&.aggregates_reblogs?)
end
end

View File

@ -34,13 +34,13 @@ class CreateTaggings < ActiveRecord::Migration[7.1]
end
def restore_join_tables
create_table :statuses_tags, primary_key: [:tag_id, :status_id], force: :cascade do |t|
create_table :statuses_tags, primary_key: [:tag_id, :status_id], force: :cascade do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.bigint :status_id, null: false
t.bigint :tag_id, null: false
t.index :status_id
end
create_table :accounts_tags, primary_key: [:tag_id, :account_id], force: :cascade do |t|
create_table :accounts_tags, primary_key: [:tag_id, :account_id], force: :cascade do |t| # rubocop:disable Rails/CreateTableWithTimestamps
t.bigint :account_id, null: false
t.bigint :tag_id, null: false
t.index [:account_id, :tag_id]