forget icon indicating copy to clipboard operation
forget copied to clipboard

New endpoint to add arbitrary statuses

Open codl opened this issue 4 years ago • 1 comments

As part of #64, an endpoint is needed that can add arbitrary statuses from the client in batches

The post IDs are the important part, but we can also temporarily trust any additional metadata sent by the client because the status will always be refreshed before we try anything. Though we have to:

  • [ ] Ensure that a refresh deletes a post from the db if it is found to be owned by someone else
  • [ ] Ensure that mastodon.py properly urlencodes the post ID. Don't want to request post id 12345678/../../GETThisToLaunchTheNukes or whatever. Post ID is a url parameter on twitter so I'm not worried there.

codl avatar May 14 '21 12:05 codl

Of note: there is a potential for this to disrupt the regular fetching of posts if sparse sets of statuses are uploaded. I believe it should be fine as long as it is used to import only posts ranging from the beginning of time to a point in time already covered by regular fetching, with no gaps. Which is the intended purpose.

codl avatar May 14 '21 15:05 codl