From 5320b561c592e875f0523760d4d20df8d66b30a7 Mon Sep 17 00:00:00 2001 From: raven Date: Mon, 20 Oct 2025 18:06:13 -0500 Subject: user and channel saving --- server/object/tombstone.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server/object/tombstone.go') diff --git a/server/object/tombstone.go b/server/object/tombstone.go index 05d9600..a2872f6 100644 --- a/server/object/tombstone.go +++ b/server/object/tombstone.go @@ -10,7 +10,17 @@ type Tombstone struct { Fields map[string]string } +type TombstoneKind struct {} + +func (t TombstoneKind) Undata(o proto.Object) Object { + return Tombstone {Id: o.Id, Fields: o.Fields} +} + func (t Tombstone) InfoFor(uid string) proto.Object { + return t.Data() +} + +func (t Tombstone) Data() proto.Object { return proto.Object {"gone", t.Id, t.Fields} } -- cgit v1.2.3