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

Federation: dont overwrite local object from Announce activity #2232

Merged
merged 5 commits into from
Apr 25, 2022

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Apr 21, 2022

I was testing something else and came across a way to reproduce the problem in #2143.

/// When for example a Post is made in a remote community, the community will send it back,
/// wrapped in Announce. If we simply receive this like any other federated object, overwrite the
/// existing, local Post. In particular, it will set the field local = false, so that the object
/// can't be fetched from the Activitypub HTTP endpoint anymore (which only serves local objects).
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment explains whats going wrong.

@Nutomic
Copy link
Member Author

Nutomic commented Apr 21, 2022

I cant figure out why locked status isnt federating properly. Its even weirder because tests fail at unlock, but with manual testing i cant even get lock to federate. Or rather, it seems to federate fine, but gets restored to the previous status for some reason.

@Nutomic
Copy link
Member Author

Nutomic commented Apr 22, 2022

Damn, i didnt set ap_id and so it was creating a new post in the database for every federated lock action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants