-
Notifications
You must be signed in to change notification settings - Fork 170
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
Adding ability to remove and restore comments. #1182 #1323
Conversation
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.
I plan on adding more mod-abilities to jerboa in the coming weeks, but this is a good start.
app/src/main/java/com/jerboa/ui/components/comment/CommentNode.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/jerboa/ui/components/comment/CommentNode.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/jerboa/ui/components/comment/CommentOptionsDropdown.kt
Show resolved
Hide resolved
app/src/main/java/com/jerboa/ui/components/person/PersonProfileActivity.kt
Show resolved
Hide resolved
app/src/main/java/com/jerboa/ui/components/remove/comment/CommentRemoveActivity.kt
Show resolved
Hide resolved
app/src/main/java/com/jerboa/ui/components/remove/comment/CommentRemoveActivity.kt
Show resolved
Hide resolved
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.
I can't test the functionality, not a mod somewhere but I'll take your word on it.
app/src/main/java/com/jerboa/ui/components/comment/CommentNode.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/jerboa/ui/components/comment/CommentNode.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/jerboa/ui/components/comment/CommentNode.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/com/jerboa/ui/components/comment/CommentOptionsDropdown.kt
Show resolved
Hide resolved
app/src/main/java/com/jerboa/ui/components/remove/comment/CommentRemoveActivity.kt
Show resolved
Hide resolved
I've been using voyager.lemmy.ml to test. You can use my test admin account there: username: pass: |
This adds the ability to remove and restore comments.
It also adds the correct hierarchical logic for the
canMod
function copied from lemmy-ui, which requires a list of admins and mods.