Delete notifications when deleting comments #499
No reviewers
標籤
未選擇標籤
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
未選擇里程碑
No project
No assignees
2 participant
訊息
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Plume/Plume#499
載入中…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/delete-notifications"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR implements a new function
find_for_comment
onNotification
to list all notifications for a specific comment. Thedelete
function onComment
is changed to list and delete all connected notifications.I wasn't able to test the changes yet since I don't have the test environment set up, so the PR is
WIP
for now.This should close #463 and close #500.
Codecov Report
The following changes have been made:
comment_id
is set, instead ofpost_id
)The following use cases were tested:
Does this mean it fixes #500 too?
No. That's another issue. In that issue, mentioning and mentioned user are confused somewhere, I guess.
It actually looks like this also closes #500.
It is a bit weird to receive two notifications for the same comment when you are mentioned in a comment under your own article, but it is not really related to this PR, and otherwise it works great. Thank you. 😊