From 3c48cb0a83ea1334aeea14860cef96deead4ac12 Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Mon, 26 Mar 2018 15:18:27 +0200 Subject: [PATCH] Feed the post with data after is has been created --- diaspy/streams.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/diaspy/streams.py b/diaspy/streams.py index defbc79..a5e5ca5 100644 --- a/diaspy/streams.py +++ b/diaspy/streams.py @@ -273,7 +273,9 @@ class Stream(Generic): 'x-csrf-token': repr(self._connection)}) if request.status_code != 201: raise Exception('{0}: Post could not be posted.'.format(request.status_code)) - post = Post(self._connection, request.json()['id']) + data = request.json() + post = Post(self._connection, data['guid']) + post.data(data) return post def _photoupload(self, filename, aspects=[]): -- 2.25.1