Bugfixes by @cwt (#42)

* check for missing actor in stream item

* reply on my own status

* fix img exceed div

* check for "actor" key in item.meta before render

* force UTF-8 text encoding

* check if a is a dict or string

* check d object must be dict to get url or id

* json/atom/rss feed

* handle missing root_id

* fix newer-link hover

* fix older-link position

* quick hack to support peertube video

* enable IndieAuth endpoint

* fix 500 when remote follow
This commit is contained in:
Thomas Sileo
2019-02-24 21:04:09 +01:00
committed by GitHub
parent 1926ba92fa
commit 1a7a02a221
7 changed files with 72 additions and 22 deletions

View File

@@ -48,6 +48,7 @@ def fetch_og_metadata(user_agent, links):
logger.debug(f"skipping {l}")
continue
r.encoding = 'UTF-8'
html = r.text
try:
data = dict(opengraph.OpenGraph(html=html))