mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-21 14:23:04 +00:00
5abdc77c80
* Add <ostatus:conversation /> tag to Atom input/output Only uses ref attribute (not href) because href would be the alternate link that's always included also. Creates new conversation for every non-reply status. Carries over conversation for every reply. Keeps remote URIs verbatim, generates local URIs on the fly like the rest of them. * Fix conversation migration * More spec coverage for status before_create * Prevent n+1 query when generating Atom with the new conversations * Improve code style * Remove redundant local variable
7 lines
208 B
Ruby
7 lines
208 B
Ruby
class AddConversationIdToStatuses < ActiveRecord::Migration[5.0]
|
|
def change
|
|
add_column :statuses, :conversation_id, :bigint, null: true, default: nil
|
|
add_index :statuses, :conversation_id
|
|
end
|
|
end
|