Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Unpublishing a post doesn't delete federated post #134
Describe the bug
Kind of the opposite of #9 - when a post is deleted on Writefreely, it is correctly deleted from the federated feed (my view on Mastodon). However, moving a post from published to draft status does not delete the federated post, and when the post is moved back from draft to published, the federated post stays- and now has the wrong URL!
Steps to reproduce (if necessary)
Steps to reproduce the behavior:
My feed at @PrincessGrace@perfect.hypnovir.us shows the issue- the post for Happy Camper Pt. 3 links to https://perfect.hypnovir.us/happy-camper-pt-78pl, while the correct link is now (link is NSFW if your boss has my fetishes): https://perfect.hypnovir.us/happy-camper-pt-k15s
Moving a post to draft should delete the corresponding federated post.
Version or last commit:
Thank you. For what it's worth, I think the best option is simply to delete the federated post on unpublish and create a new post on publish, since it's the only way to ensure you don't get a phantom post with a broken link.
The other route is something like "delete the post if it'll be republished with a different URL, and leave it otherwise", but that's a pretty weird and unintuitive behavior.