mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 21:57:19 +00:00
Ignore previous old ones
This commit is contained in:
parent
7e68a1c8bb
commit
95cd62b8d1
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue