-
-
Notifications
You must be signed in to change notification settings - Fork 885
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
Rewrite fetcher #1792
Conversation
@@ -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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
732f119
to
24fc616
Compare
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.