mirror of https://gitlab.com/bashrc2/epicyon
Don't show DMs if unauthorized
parent
155493c0d0
commit
80545e279a
2
posts.py
2
posts.py
|
@ -3091,6 +3091,8 @@ def _createBoxIndexed(recentPostsCache: {},
|
||||||
if not authorized:
|
if not authorized:
|
||||||
if p.get('object'):
|
if p.get('object'):
|
||||||
if isinstance(p['object'], dict):
|
if isinstance(p['object'], dict):
|
||||||
|
if isDM(p):
|
||||||
|
continue
|
||||||
if p['object'].get('likes'):
|
if p['object'].get('likes'):
|
||||||
p['likes'] = {'items': []}
|
p['likes'] = {'items': []}
|
||||||
if p['object'].get('replies'):
|
if p['object'].get('replies'):
|
||||||
|
|
Loading…
Reference in New Issue