summaryrefslogtreecommitdiffstats
path: root/users/models
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-04 07:36:38 -0700
committerAndrew Godwin2022-12-04 07:36:38 -0700
commit8835fdee6b86118053840b69d49553b077d2d9f1 (patch)
tree0be51d1174ebb60459e708c598df24aedd0bf838 /users/models
parent864b730164d5830a19eb0fdd93b95d696e08eaf9 (diff)
downloadtakahe-8835fdee6b86118053840b69d49553b077d2d9f1.tar.gz
takahe-8835fdee6b86118053840b69d49553b077d2d9f1.tar.bz2
takahe-8835fdee6b86118053840b69d49553b077d2d9f1.zip
Explicitly ignore add and remove messages for now
Diffstat (limited to 'users/models')
-rw-r--r--users/models/inbox_message.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/users/models/inbox_message.py b/users/models/inbox_message.py
index 079c572..0bf6851 100644
--- a/users/models/inbox_message.py
+++ b/users/models/inbox_message.py
@@ -79,6 +79,12 @@ class InboxMessageStates(StateGraph):
raise ValueError(
f"Cannot handle activity of type delete.{unknown}"
)
+ case "add":
+ # We are ignoring these right now (probably pinned items)
+ pass
+ case "remove":
+ # We are ignoring these right now (probably pinned items)
+ pass
case unknown:
raise ValueError(f"Cannot handle activity of type {unknown}")
return cls.processed