updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / choqok-weibo / userUrl.diff
blobaea4434d2cb55c555c724ade006cce9d6cf11d05
1 diff -ru a/sinamicroblog.cpp b/sinamicroblog.cpp
2 --- a/sinamicroblog.cpp 2011-12-19 19:30:38.095438146 +0800
3 +++ b/sinamicroblog.cpp 2011-12-19 19:29:57.888989297 +0800
4 @@ -469,17 +468,17 @@
5 return 0;
8 -QString SinaMicroBlog::postUrl( Choqok::Account* account, const QString& username, const QString& postId ) const
9 +QString SinaMicroBlog::postUrl( Choqok::Account* account, const QString& userId, const QString& postId ) const
11 Q_UNUSED(account)
12 - Q_UNUSED(username)
13 - return QString( "http://weibo.com/status/%2" ).arg( postId );
14 + return QString();
15 + // return QString( "http://weibo.com/%1/status/%2" ).arg( userId ).arg( postId );
18 QString SinaMicroBlog::profileUrl( Choqok::Account* account, const QString& username ) const
20 Q_UNUSED(account)
21 - return QString( "http://weibo.com/%1" ).arg( username );
22 + return QString( "http://weibo.com/n/%1" ).arg( username );
25 void SinaMicroBlog::retweetPost( Choqok::Account* theAccount, Choqok::Post* post )