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

Dont federate post locking via Update activity #4717

Merged
merged 4 commits into from
May 15, 2024
Merged

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented May 14, 2024

This receiving logic has actually not been used for a while now so we can safely remove it. It also has some rather messy logic that could result in security problems so better to get rid of it soon.

};
ModLockPost::create(&mut context.pool(), &form).await?;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

This might need to be kept.

Copy link
Member

Choose a reason for hiding this comment

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

good catch.

Copy link
Member Author

Choose a reason for hiding this comment

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

Its not necessary here anymore as posts cant be locked this way. Instead it uses the lock page activity. But I just noticed that it didnt write the mod log at all, so Ive added that now.

@dessalines dessalines merged commit 93c9a5f into main May 15, 2024
2 checks passed
@SleeplessOne1917 SleeplessOne1917 deleted the lock-post-change branch May 15, 2024 13:10
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.

3 participants