Bubble [main]

Added "mute" table

=> 3f1a015f2316ad5758c57cfb7883412dc77d3bf9

diff --git a/model.py b/model.py
index cba9568..500cb64 100644
--- a/model.py
+++ b/model.py
@@ -24,6 +24,7 @@ def parse_asn1_time(asn1_bytes):
 
 # NOTE: All enum values are used in database, don't change them!
 FOLLOW_USER, FOLLOW_POST, FOLLOW_SUBSPACE = range(3)
+MUTE_USER, MUTE_POST, MUTE_SUBSPACE = range(3)
 
 
 class Segment:
@@ -496,6 +497,13 @@ class Database:
             UNIQUE KEY (user, type, target)
         )""")
 
+        db.execute("""CREATE TABLE IF NOT EXISTS mute (
+            user        INT NOT NULL,
+            type        INT,
+            target      INT,
+            UNIQUE KEY (user, type, target)
+        )""")
+
         db.execute("""CREATE TABLE IF NOT EXISTS likes (
             user        INT NOT NULL,
             post        INT NOT NULL,
Proxy Information
Original URL
gemini://git.skyjake.fi/bubble/main/cdiff/3f1a015f2316ad5758c57cfb7883412dc77d3bf9
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
28.212789 milliseconds
Gemini-to-HTML Time
0.244588 milliseconds

This content has been proxied by September (ba2dc).