Add explicit post unarchive.

This commit is contained in:
hugo committed 2026-07-21 21:49:06 +02:00
1 parent 1e32c7e945
commit 1c04087471
12 files changed
+284 -31

No files matched your search

+14
View File
@@ -335,6 +335,20 @@ fn representative_shared_mutations_emit_exactly_one_typed_event_each() {
&post.id,
NotificationAction::Updated,
);
bds_core::engine::post::archive_post(db.conn(), dir.path(), &post.id).unwrap();
assert_one_entity_event(
&subscription,
DomainEntity::Post,
&post.id,
NotificationAction::Updated,
);
bds_core::engine::post::unarchive_post(db.conn(), dir.path(), &post.id).unwrap();
assert_one_entity_event(
&subscription,
DomainEntity::Post,
&post.id,
NotificationAction::Updated,
);
bds_core::engine::media::update_media(
db.conn(),