1
0
Commit Graph

31 Commits

Author SHA1 Message Date
KevinWh0 2a8e93e4be Fixed code injection from twitter import 2024-02-01 15:58:50 +01:00
dakkar b77c025245 link twitter names to twitter, not nitter #382
nitter seems very dead
2024-01-28 16:06:16 +00:00
Marie 1805150533 fix: visibility check on masto import
Originally from PR #288
2023-12-31 22:41:35 +01:00
Marie 233eff48f3 merge: pleroma note import - Use hashed filename for exists check (#283)
Reviewed-on: https://git.joinsharkey.org/Sharkey/Sharkey/pulls/283
2023-12-31 18:43:38 +01:00
smitten 8d6d5923da Simplify hash steps 2023-12-31 11:14:41 -05:00
smitten 327694d4cf Use base64url digest 2023-12-31 09:13:51 -05:00
smitten e9428a5a05 Use hex digest 2023-12-31 09:03:46 -05:00
Marie b700fadbe3 upd: add home as a visibility for mastodon imports 2023-12-31 06:32:39 +01:00
Marie 07f06d7ed6 fix: if condition 2023-12-31 04:09:44 +01:00
Marie fc6581b948 fix: correct followers visibility on import 2023-12-31 03:50:05 +01:00
Marie 667daebb79 upd: prevent vanilla mastodon imports from importing DMs
Also adds the visibility function to mastodon imports
2023-12-31 03:48:51 +01:00
smitten 0bb0d69543 Use hashed filename for exists check 2023-12-30 20:44:31 -05:00
dakkar c958d935e4 thread Pleroma imports as well
I have _not_ tested this, but it should work fine, those exports are
the same shape as Mastodon's
2023-11-30 13:26:55 +00:00
dakkar c59e74dfd5 fix chaining for Mastodon notes
the id / replyId are not at the top level, so now `recreateChain`
takes a list of keys to walk, not just a single key
2023-11-30 13:26:55 +00:00
dakkar 15503b96a0 properly thread Mastodon imports 2023-11-30 13:26:55 +00:00
Gianni Ceccarelli e392d523a7 prepare to import more notes
`recreateChain` converts a list of notes into a forest of notes, using
notes that are not replies as roots, and replies as child nodes,
recursively.

Previously, notes that are replies to notes not included in the
export, and their children, were never put in the forest, and
therefore wheren't imported.

This can be fine when importing from Twitter, since we can't really
link a note to a tweet.

And, for the moment, it's acceptable when importing from *key, because
the export doesn't contain the instance URL, so we can't resolve ids
to remote notes.

It's less fine when importing from Mastodon / Pleroma / Akkoma,
because in those cases we _can_ link to the remote note that the user
was replying to.

This commit makes `recreateChain` optionally return "orphaned" note
trees, so in the (near) future we can use it to properly thread
imported notes from those services.
2023-11-30 13:26:55 +00:00
Mar0xy 62bcd42891 upd: create Folders for imported media 2023-11-28 22:46:10 +01:00
Mar0xy 81c36908d9 fix: attachments not working on FB import 2023-11-22 19:02:43 +01:00
Mar0xy d078a72f38 upd: add Facebook to note importing 2023-11-22 16:00:46 +01:00
Mar0xy 19fc5a74f0 merge: improve recreateChain
Resolves #159
2023-11-18 12:38:13 +01:00
Mar0xy 4929467016 upd: import own replies to own tweets 2023-11-17 20:10:16 +01:00
Mar0xy 6f76a3a1f8 upd: import replies to own posts on *key 2023-11-13 13:07:49 +01:00
Mar0xy 9b3993a652 fix: prevent *key renotes/boosts from being imported
Stop renotes/boosts from *key from being imported due to missing functionality of getting the related posts
2023-11-13 10:25:39 +01:00
Mar0xy 5c38e6b824 add: custom like emoji per instance, fix like
This fixes the fact that likes on mastodon didn't get federated properly and let's instance admins choose a custom emoji
2023-11-12 22:16:47 +01:00
Mar0xy 1f8c12b984 fix: use a proper function 2023-11-12 18:19:44 +01:00
Mar0xy 8cad8f0ae5 fix: broken unicode in strings on IG imports 2023-11-12 18:12:39 +01:00
Mar0xy 486a2ad839 upd: remove unused function, fix logger message 2023-11-12 18:01:39 +01:00
Mar0xy bc25b28a4e fix: cleanup not available on development env 2023-11-12 17:32:24 +01:00
Mar0xy b7fc13efb7 upd: pass full thinuser 2023-11-12 15:48:28 +01:00
Mar0xy 2d1e8ee44d upd: update limit 2023-11-12 15:37:36 +01:00
Mar0xy 83f328de8a add: Importing of Posts
- Supports Instagram, Mastodon/Pleroma/Akkoma, Twitter and *key
2023-11-12 15:12:42 +01:00