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 os
|
||||||
import datetime
|
import datetime
|
||||||
import time
|
import time
|
||||||
|
import html
|
||||||
import urllib.parse
|
import urllib.parse
|
||||||
from linked_data_sig import verifyJsonSignature
|
from linked_data_sig import verifyJsonSignature
|
||||||
from utils import getDisplayName
|
from utils import getDisplayName
|
||||||
|
@ -2154,7 +2155,9 @@ def _updateSpeaker(baseDir: str, nickname: str, domain: str,
|
||||||
speakerFilename = \
|
speakerFilename = \
|
||||||
baseDir + '/accounts/' + nickname + '@' + domain + '/speaker.json'
|
baseDir + '/accounts/' + nickname + '@' + domain + '/speaker.json'
|
||||||
content = urllib.parse.unquote_plus(postJsonObject['object']['content'])
|
content = urllib.parse.unquote_plus(postJsonObject['object']['content'])
|
||||||
|
content = html.unescape(content)
|
||||||
content = removeHtml(htmlReplaceQuoteMarks(content))
|
content = removeHtml(htmlReplaceQuoteMarks(content))
|
||||||
|
content = content.replace('"', '"')
|
||||||
summary = ''
|
summary = ''
|
||||||
if postJsonObject['object'].get('summary'):
|
if postJsonObject['object'].get('summary'):
|
||||||
if isinstance(postJsonObject['object']['summary'], str):
|
if isinstance(postJsonObject['object']['summary'], str):
|
||||||
|
|
Loading…
Reference in New Issue