Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
517a0f25
Commit
517a0f25
authored
Aug 23, 2013
by
Joshua Roesslein
Browse files
Merge pull request #351 from tewalds/model_api
Still build a User even if no api is passed in
parents
fd7cc6e4
0ffefee3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/models.py
View file @
517a0f25
...
...
@@ -66,7 +66,7 @@ class Status(Model):
status
=
cls
(
api
)
for
k
,
v
in
json
.
items
():
if
k
==
'user'
:
user_model
=
getattr
(
api
.
parser
.
model_factory
,
'user'
)
user_model
=
getattr
(
api
.
parser
.
model_factory
,
'user'
)
if
api
else
User
user
=
user_model
.
parse
(
api
,
v
)
setattr
(
status
,
'author'
,
user
)
setattr
(
status
,
'user'
,
user
)
# DEPRECIATED
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment