summaryrefslogtreecommitdiffstats
path: root/server/src/api/community.rs
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-05-01 15:01:29 -0400
committerDessalines <tyhou13@gmx.com>2020-05-01 15:01:29 -0400
commit5366797a4b14634f1cfee183b8b8309efd457f46 (patch)
treecb212dcba31f1f299d1f68792356d45681a03350 /server/src/api/community.rs
parent2f1cd9976dbdc034836a01748086056999aff52a (diff)
Add undos for delete community, post, and comment.
Diffstat (limited to 'server/src/api/community.rs')
-rw-r--r--server/src/api/community.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/api/community.rs b/server/src/api/community.rs
index a0842431..71da6712 100644
--- a/server/src/api/community.rs
+++ b/server/src/api/community.rs
@@ -384,7 +384,7 @@ impl Perform for Oper<EditCommunity> {
if deleted {
updated_community.send_delete(&user, &conn)?;
} else {
- // TODO: undo delete
+ updated_community.send_undo_delete(&user, &conn)?;
}
}