about summary refs log tree commit diff
path: root/app/models/tombstone.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-01-18 15:56:55 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-01-18 15:56:55 +0100
commit75b1488cf4dfe54260deff8df20e5e9b9fd90aea (patch)
treeda5c67eabed97c45a55d6943a203a8fec8683095 /app/models/tombstone.rb
parent31f396b57dea684685d0affc3727a75eed2f38c9 (diff)
Add tombstones for remote statuses (#9830)
* Add Tombstone model to remember object deletion

* Do not recreate a status if it has been deleted

* Record Tombstone for remote deleted items

Also, only record deleted items from same-host actors

* Clear an user's tombstones when their key change
Diffstat (limited to 'app/models/tombstone.rb')
-rw-r--r--app/models/tombstone.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/models/tombstone.rb b/app/models/tombstone.rb
new file mode 100644
index 000000000..35b7337ff
--- /dev/null
+++ b/app/models/tombstone.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+# == Schema Information
+#
+# Table name: tombstones
+#
+#  id         :bigint(8)        not null, primary key
+#  account_id :bigint(8)
+#  uri        :string           not null
+#  created_at :datetime         not null
+#  updated_at :datetime         not null
+#
+
+class Tombstone < ApplicationRecord
+end