New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Import tweets from twitter archive #1146
Conversation
dc37f1f
to
83006e9
Compare
@@ -25,7 +25,7 @@ class Import < ApplicationRecord | |||
|
|||
belongs_to :account | |||
|
|||
enum type: { following: 0, blocking: 1, muting: 2, domain_blocking: 3, bookmarks: 4 } | |||
enum type: { following: 0, blocking: 1, muting: 2, domain_blocking: 3, bookmarks: 4, tweet: 5 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add import data type for tweets
@@ -20,6 +20,8 @@ def call(import) | |||
import_domain_blocks! | |||
when 'bookmarks' | |||
import_bookmarks! | |||
when 'tweet' | |||
import_tweets! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add case when user import tweets csv.
file = URI.open(path) | ||
@account.media_attachments.create!(file: file).id | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import media attachments from tweet media url.
) | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import tweets to Mastodon from twitter archive data.
Import tweets to mastodon from twitter archive data