Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

S-H-GAMELINKS
Copy link
Owner

Import tweets to mastodon from twitter archive data

@S-H-GAMELINKS S-H-GAMELINKS added the enhancement New feature or request label Apr 12, 2023
@@ -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 }
Copy link
Owner Author

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!
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Owner Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant