summaryrefslogtreecommitdiff
path: root/server/object/tombstone.go
diff options
context:
space:
mode:
authorraven <citrons@mondecitronne.com>2025-10-20 18:06:13 -0500
committerraven <citrons@mondecitronne.com>2025-10-20 18:06:13 -0500
commit5320b561c592e875f0523760d4d20df8d66b30a7 (patch)
tree1b2f6cb8edc6a4b9cdd5d138b8528f04ff46971d /server/object/tombstone.go
parent9e08d84af7d975ef540a67b54ecc9b3c0e4d084c (diff)
user and channel saving
Diffstat (limited to 'server/object/tombstone.go')
-rw-r--r--server/object/tombstone.go10
1 files changed, 10 insertions, 0 deletions
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}
}