-
-
Notifications
You must be signed in to change notification settings - Fork 879
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
[Bug]: Reports are no longer sent to user's home instance in 0.19.4-beta.6 #4701
Comments
This is going to be a tough one to test and add integration tests for, considering its on different lemmy versions. @Nutomic might be more familiar with a change that caused this. |
I don't think the versions are relevant for federating reports, I just had this setup as I was comparing the outcomes. |
I'm mostly sure that test case is handled here |
If I'm reading that test case correctly, it does the following:
This part is still working on 0.19.4-beta.6. What we'd need a test case for is this:
|
I wrote an api test to cover this in #4711 and its passing just fine. I also dont see any changes in the relevant code since 0.19.3 |
All 3 instances here are 0.19.4-beta.6 and it works for both posts and comments: {
"send_inboxes": [
"https://gbngug.lem.rocks/inbox",
"https://f3heh9.lem.rocks/inbox"
],
"data": {
"actor": "https://i6q7wn.lem.rocks/u/admin",
"to": [
"https://f3heh9.lem.rocks/c/0194"
],
"object": "https://gbngug.lem.rocks/post/5",
"summary": "test report all 0.19.4-beta.6",
"content": null,
"type": "Flag",
"id": "https://i6q7wn.lem.rocks/activities/flag/57dc5b63-9a94-4fe9-98af-4f1f7d3dbd67",
"audience": "https://f3heh9.lem.rocks/c/0194"
}
} {
"send_inboxes": [
"https://gbngug.lem.rocks/inbox",
"https://f3heh9.lem.rocks/inbox"
],
"data": {
"actor": "https://i6q7wn.lem.rocks/u/admin",
"to": [
"https://f3heh9.lem.rocks/c/0194"
],
"object": "https://gbngug.lem.rocks/post/5",
"summary": "test report all 0.19.4-beta.6",
"content": null,
"type": "Flag",
"id": "https://i6q7wn.lem.rocks/activities/flag/57dc5b63-9a94-4fe9-98af-4f1f7d3dbd67",
"audience": "https://f3heh9.lem.rocks/c/0194"
}
} A 0.19.3 comment reported from 0.19.4-beta.6: {
"send_inboxes": [
"https://f3heh9.lem.rocks/inbox"
],
"data": {
"actor": "https://i6q7wn.lem.rocks/u/admin",
"to": [
"https://f3heh9.lem.rocks/c/0194"
],
"object": "https://7c4tx1.lem.rocks/comment/18",
"summary": "test from 0.19.4-beta.6, this should go to the 0.19.3 home instance",
"content": null,
"type": "Flag",
"id": "https://i6q7wn.lem.rocks/activities/flag/a40477d3-18ef-463e-bbd6-281f29e24972",
"audience": "https://f3heh9.lem.rocks/c/0194"
}
} Unless the remote software is taken into account when deciding whether to send a report to the home instance, it shouldn't matter that the instance is 0.19.3? |
Somehow my 0.19.3 instance is missing in the
|
Right thats the reason then, got it fixed. |
Requirements
Summary
Since #4305, reports of posts and comments are supposed to also be sent to the user's home instance.
My tests on 0.19.4-beta.6 show this is no longer being the case.
Steps to Reproduce
Technical Details
7c4tx1.lem.rocks is running 0.19.3.
f3heh9.lem.rocks and gbngug.lem.rocks are running 0.19.4-beta.6.
Scenario 1:
A user on gbngug.lem.rocks (0.19.4-beta.6) commented in https://f3heh9.lem.rocks/c/0194, a community on another 0.19.4-beta.6 instance.
A user on 7c4tx1.lem.rocks (0.19.3) reports this comment.
The report gets sent to and received by both the community instance and also the creator's instance.
sent activity from db
Scenario 2:
A user on 7c4tx1.lem.rocks (0.19.3) commented in https://f3heh9.lem.rocks/c/0194, a community on another 0.19.4-beta.6 instance.
A user on gbngug.lem.rocks (0.19.4-beta.6) reports this comment.
The report gets sent to and received by only the community instance.
sent activity from db
The obvious difference between these two is the lack of the creator's home instance being in the
send_inboxes
column.As I understand it, this is populated when the activity is created in the database.
Version
0.19.4-beta.6
Lemmy Instance URL
No response
The text was updated successfully, but these errors were encountered: