From 68dc2dc9ed0620e0d021f54946cd70e31b88f6bf Mon Sep 17 00:00:00 2001 From: Karthik Balakrishnan Date: Sat, 20 May 2023 12:32:40 +0530 Subject: [PATCH] Use post id to generate summary class (#583) Removes the "expand linked CWs" feature for now. --- activities/models/post.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/activities/models/post.py b/activities/models/post.py index 045233e..ae856b8 100644 --- a/activities/models/post.py +++ b/activities/models/post.py @@ -1,5 +1,4 @@ import datetime -import hashlib import json import mimetypes import ssl @@ -436,7 +435,7 @@ class Post(StatorModel): """ if not self.summary: return "" - return "summary-" + hashlib.md5(self.summary.encode("utf8")).hexdigest() + return "summary-{self.id}" @property def stats_with_defaults(self):