fix posting on masto without a reply_to_id
This commit is contained in:
parent
c301fd31c5
commit
7b2faec9ae
1 changed files with 3 additions and 3 deletions
|
@ -81,9 +81,9 @@ class Pleroma:
|
|||
if visibility not in {None, 'private', 'public', 'unlisted', 'direct'}:
|
||||
raise ValueError('invalid visibility', visibility)
|
||||
|
||||
in_reply_to_id = self._unpack_id(in_reply_to_id)
|
||||
|
||||
data = dict(status=content, in_reply_to_id=in_reply_to_id)
|
||||
data = dict(status=content)
|
||||
if in_reply_to_id := self._unpack_id(in_reply_to_id):
|
||||
data['in_reply_to_id'] = in_reply_to_id
|
||||
if visibility is not None:
|
||||
data['visibility'] = visibility
|
||||
if cw is not None:
|
||||
|
|
Loading…
Reference in a new issue