#330 Remove posts immediately by blocking someone #1859

Closed
jasper wants to merge 0 commits from gitlab-mr-iid-589 into develop
Member
#330

Too nuclear. Add a new mutation that removes just the posts by that users, not clear all timelines.

Too nuclear. Add a new mutation that removes just the posts by that users, not clear all timelines.
Author
Member

I also think it's too nuclear. but please note the fact that when follow or unblock someone, it's hard to fetch/display his posts added while he was blocked, because posts are fetched by using max_id/min_id of timelines existing in the store.
Anyway, I will add a new mutation according to your opinion.

I also think it's too nuclear. but please note the fact that when follow or unblock someone, it's hard to fetch/display his posts added while he was blocked, because posts are fetched by using max_id/min_id of timelines existing in the store. Anyway, I will add a new mutation according to your opinion.
Author
Member

Sorry for my stupid comment. :) I've found a solution that can add missing posts by following or unblocking.

Sorry for my stupid comment. :) I've found a solution that can add missing posts by following or unblocking.
Author
Member

I've updated. please review and let me know if there is any thing I need to change.

I've updated. please review and let me know if there is any thing I need to change.
Owner

I'm not sure if this does anything, I think if count isn't provided then the count defaults to 20. at least this is how it used to be

I'm not sure if this does anything, I think if count isn't provided then the count defaults to 20. at least this is how it used to be
Author
Member

yes, if count isn't provided then, it's still set to 20.
const fetchTimeline = ({timeline, credentials, since = false, until = false, between = false, count = 20, userId = false, tag = false}) => {

I just wanted to fetch all statuses (over 20) between max-id and min-id after unblock/follow someone.

yes, if count isn't provided then, it's still set to 20. `const fetchTimeline = ({timeline, credentials, since = false, until = false, between = false, count = 20, userId = false, tag = false}) => {` I just wanted to fetch all statuses (over 20) between max-id and min-id after unblock/follow someone.
Owner

I mean, the backend defaults it to 20 if you don't give it the param

I mean, the backend defaults it to 20 if you don't give it the param
Author
Member

oh, I hadn't checked backend.
I think we need to add a case to fetch all statuses between max_id and since_id in the backend.

Just so you know, the backend uses "limit" parameter, not "count". The "count" from FE isn't used at all. I will change it to "limit" in FE.

oh, I hadn't checked backend. I think we need to add a case to fetch all statuses between max_id and since_id in the backend. Just so you know, the backend uses "limit" parameter, not "count". The "count" from FE isn't used at all. I will change it to "limit" in FE.
Author
Member

@shpuld I've updated, so you can merge.
This MR have a functionality only to remove statuses by blocking/unfollowing.

@shpuld I've updated, so you can merge. This MR have a functionality only to remove statuses by blocking/unfollowing.

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma/pleroma-fe!1859
No description provided.