mirror of https://gitlab.com/bashrc2/epicyon
Unescape speacker text
parent
12f4efc47b
commit
3807077dae
3
inbox.py
3
inbox.py
|
@ -10,6 +10,7 @@ import json
|
|||
import os
|
||||
import datetime
|
||||
import time
|
||||
import html
|
||||
import urllib.parse
|
||||
from linked_data_sig import verifyJsonSignature
|
||||
from utils import getDisplayName
|
||||
|
@ -2154,7 +2155,9 @@ def _updateSpeaker(baseDir: str, nickname: str, domain: str,
|
|||
speakerFilename = \
|
||||
baseDir + '/accounts/' + nickname + '@' + domain + '/speaker.json'
|
||||
content = urllib.parse.unquote_plus(postJsonObject['object']['content'])
|
||||
content = html.unescape(content)
|
||||
content = removeHtml(htmlReplaceQuoteMarks(content))
|
||||
content = content.replace('"', '"')
|
||||
summary = ''
|
||||
if postJsonObject['object'].get('summary'):
|
||||
if isinstance(postJsonObject['object']['summary'], str):
|
||||
|
|
Loading…
Reference in New Issue