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 send comment reply to user who has community blocked. Fixes #3684 #4096

Merged
merged 7 commits into from
Nov 9, 2023

Conversation

dessalines
Copy link
Member

No description provided.

@Nutomic
Copy link
Member

Nutomic commented Oct 25, 2023

The same check also needs to be added for blocked instance then.

@dessalines
Copy link
Member Author

dessalines commented Oct 25, 2023

I thought blocked instance only cares about blocking the communities, not the users from those communities?

EDIT: Sorry, yeah I spose that does make sense, my bad.

@dessalines dessalines marked this pull request as draft October 25, 2023 13:09
@dessalines dessalines marked this pull request as ready for review October 25, 2023 13:30
@Nutomic
Copy link
Member

Nutomic commented Oct 25, 2023

Please add some test cases. Especially for send_local_notifs() it would be good to have some test coverage. Maybe as api tests.

@dessalines dessalines marked this pull request as draft October 25, 2023 21:01
@dessalines dessalines marked this pull request as ready for review November 7, 2023 18:37
);
if (!alphaComment) {
throw "Missing alpha comment before block";
}
Copy link
Member

@Nutomic Nutomic Nov 8, 2023

Choose a reason for hiding this comment

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

I prefer simple expect instead of such messages because its shorter and simpler, but no big deal

@Nutomic
Copy link
Member

Nutomic commented Nov 8, 2023

Tests are failing but that seems unrelated.

@Nutomic Nutomic merged commit e00b0c9 into main Nov 9, 2023
1 of 2 checks passed
Nutomic pushed a commit that referenced this pull request Nov 13, 2023
#4096)

* Dont send comment reply to user who has community blocked. Fixes #3684

* Adding source instance block check.

* Adding api test.

* Addressing PR comments.
Nutomic added a commit that referenced this pull request Nov 13, 2023
Get rid of different inboxes, only use /inbox

Remove shared_inbox_url db columns

add code migration

move to db migration, fixes

machete

fix sql

drop inbox url unique constraints

Dont create auth cookie in backend (#4136)

dont change individual inboxes to shared inbox

Dont send comment reply to user who has community blocked. Fixes #3684 (#4096)

* Dont send comment reply to user who has community blocked. Fixes #3684

* Adding source instance block check.

* Adding api test.

* Addressing PR comments.
Nutomic added a commit that referenced this pull request Nov 13, 2023
Get rid of different inboxes, only use /inbox

Remove shared_inbox_url db columns

add code migration

move to db migration, fixes

machete

fix sql

drop inbox url unique constraints

Dont create auth cookie in backend (#4136)

dont change individual inboxes to shared inbox

Dont send comment reply to user who has community blocked. Fixes #3684 (#4096)

* Dont send comment reply to user who has community blocked. Fixes #3684

* Adding source instance block check.

* Adding api test.

* Addressing PR comments.
phiresky pushed a commit that referenced this pull request Nov 16, 2023
…es (#4138)

* Merge /site_inbox into /inbox (fixes #4137)

Get rid of different inboxes, only use /inbox

Remove shared_inbox_url db columns

add code migration

move to db migration, fixes

machete

fix sql

drop inbox url unique constraints

Dont create auth cookie in backend (#4136)

dont change individual inboxes to shared inbox

Dont send comment reply to user who has community blocked. Fixes #3684 (#4096)

* Dont send comment reply to user who has community blocked. Fixes #3684

* Adding source instance block check.

* Adding api test.

* Addressing PR comments.

* move site inbox rewrite to db

* fix test

* clippy

* clippy 2

* fix test
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