mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-22 07:10:59 +00:00
Use post id to generate summary class (#583)
Removes the "expand linked CWs" feature for now.
This commit is contained in:
parent
568b87dadb
commit
68dc2dc9ed
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
import datetime
|
import datetime
|
||||||
import hashlib
|
|
||||||
import json
|
import json
|
||||||
import mimetypes
|
import mimetypes
|
||||||
import ssl
|
import ssl
|
||||||
|
@ -436,7 +435,7 @@ class Post(StatorModel):
|
||||||
"""
|
"""
|
||||||
if not self.summary:
|
if not self.summary:
|
||||||
return ""
|
return ""
|
||||||
return "summary-" + hashlib.md5(self.summary.encode("utf8")).hexdigest()
|
return "summary-{self.id}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def stats_with_defaults(self):
|
def stats_with_defaults(self):
|
||||||
|
|
Loading…
Reference in a new issue