mirror of
https://github.com/ioistired/pleroma-ebooks.git
synced 2024-11-20 02:14:52 +01:00
fix posting on masto without a reply_to_id
This commit is contained in:
parent
c301fd31c5
commit
7b2faec9ae
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user