From 96bac9923ad0a7c2feb691183049151a596f51ae Mon Sep 17 00:00:00 2001

From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi

Date: Fri, 28 Jul 2023 06:59:37 +0300

Subject: [PATCH 1/1] Update summary after deleting segments; unpublish empty

posts


model.py | 16 +++++++++++++++-

1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/model.py b/model.py

index 3ce1fc0..e4aeada 100644

--- a/model.py

+++ b/model.py

@@ -1419,8 +1419,18 @@ class Database:

     cur.execute('DELETE FROM segments WHERE id=?', (segment.id,))

     cur.execute('DELETE FROM crossrefs WHERE segment=?', (segment.id,))

     self.commit()

     if segment.type == Segment.POLL:

 def update_segment_crossrefs(self, segment: Segment):

     if segment.type == Segment.TEXT:

@@ -1502,6 +1512,9 @@ class Database:

         pos += 1

     self.commit()

 def modify_vote(self, user: User, segment: Segment):

     cur = self.conn.cursor()

@@ -1783,6 +1796,7 @@ class Database:

         self.commit()

         if title != None and not post.is_draft:

             self.update_post_summary(post)

 def notify_mentioned(self, post, content, old_content=None):

     names = parse_at_names(content)

--

2.25.1

Proxy Information
Original URL
gemini://git.skyjake.fi/bubble/main/patch/96bac9923ad0a7c2feb691183049151a596f51ae.patch
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
29.052653 milliseconds
Gemini-to-HTML Time
0.746841 milliseconds

This content has been proxied by September (ba2dc).