Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
Choqok
Commits
d2b6583d
Commit
d2b6583d
authored
Nov 04, 2012
by
Mehrdad Momeny
Browse files
BUG:303657 fixed, retweets should show original time
parent
3cc00bd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
helperlibs/twitterapihelper/twitterapimicroblog.cpp
View file @
d2b6583d
...
...
@@ -881,12 +881,11 @@ Choqok::Post * TwitterApiMicroBlog::readPostFromDomElement ( Choqok::Account* th
Choqok
::
Post
*
TwitterApiMicroBlog
::
readPostFromDomNode
(
Choqok
::
Account
*
theAccount
,
QDomNode
node
,
Choqok
::
Post
*
post
)
{
QString
timeStr
;
Choqok
::
Post
*
repeatedPost
=
0
;
while
(
!
node
.
isNull
()
)
{
QDomElement
elm
=
node
.
toElement
();
if
(
elm
.
tagName
()
==
"created_at"
)
timeStr
=
elm
.
text
();
post
->
creationDateTime
=
dateFromString
(
elm
.
text
()
)
;
else
if
(
elm
.
tagName
()
==
"text"
)
post
->
content
=
elm
.
text
();
else
if
(
elm
.
tagName
()
==
"id"
)
...
...
@@ -934,7 +933,6 @@ Choqok::Post* TwitterApiMicroBlog::readPostFromDomNode(Choqok::Account* theAccou
delete
repeatedPost
;
}
post
->
link
=
postUrl
(
theAccount
,
post
->
author
.
userName
,
post
->
postId
);
post
->
creationDateTime
=
dateFromString
(
timeStr
);
post
->
isRead
=
post
->
isFavorited
||
(
post
->
repeatedFromUsername
.
compare
(
theAccount
->
username
(),
Qt
::
CaseInsensitive
)
==
0
);
return
post
;
}
...
...
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