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

Rewrite fetcher #1792

Merged
merged 9 commits into from
Sep 25, 2021
Merged

Rewrite fetcher #1792

merged 9 commits into from
Sep 25, 2021

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Sep 24, 2021

These are all internal changes in the apub crate, and shouldnt affect the behaviour (except for bug fixes). The code is much cleaner now, and doesnt implement the same logic multiple times. This is also necessary so that we can move it to the library later.

@@ -135,7 +135,8 @@ test('Update a post', async () => {
test('Sticky a post', async () => {
let postRes = await createPost(alpha, betaCommunity.community.id);

let stickiedPostRes = await stickyPost(alpha, true, postRes.post_view.post);
let betaPost1 = (await resolvePost(beta, postRes.post_view.post)).post;
let stickiedPostRes = await stickyPost(beta, true, betaPost1.post);
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 was wrong, alpha is not a mod and shouldnt be able to make a post sticky. It only worked due to a bug in the apub fetcher which is fixed now.

Copy link
Member

Choose a reason for hiding this comment

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

Alpha is an admin, and I just checked the server code, admins should be able to sticky.

Copy link
Member Author

Choose a reason for hiding this comment

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

Admin on instance alpha, but not on beta. So the sticky wont federate.

@Nutomic Nutomic marked this pull request as ready for review September 24, 2021 13:15
@dessalines dessalines merged commit 527eefb into main Sep 25, 2021
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