fix posting on masto without a reply_to_id

This commit is contained in:
io 2021-09-21 16:56:04 +00:00
parent c301fd31c5
commit 7b2faec9ae
1 changed files with 3 additions and 3 deletions

View File

@ -81,9 +81,9 @@ class Pleroma:
if visibility not in {None, 'private', 'public', 'unlisted', 'direct'}: if visibility not in {None, 'private', 'public', 'unlisted', 'direct'}:
raise ValueError('invalid visibility', visibility) raise ValueError('invalid visibility', visibility)
in_reply_to_id = self._unpack_id(in_reply_to_id) data = dict(status=content)
if in_reply_to_id := self._unpack_id(in_reply_to_id):
data = dict(status=content, in_reply_to_id=in_reply_to_id) data['in_reply_to_id'] = in_reply_to_id
if visibility is not None: if visibility is not None:
data['visibility'] = visibility data['visibility'] = visibility
if cw is not None: if cw is not None: