Guest User

Untitled

a guest
Dec 19th, 2011
49
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
  6.  }
  7.  
  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
  10.  {
  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 );
  16.  }
  17.  
  18.  QString SinaMicroBlog::profileUrl( Choqok::Account* account, const QString& username ) const
  19.  {
  20.      Q_UNUSED(account)
  21. -    return QString( "http://weibo.com/%1" ).arg( username );
  22. +    return QString( "http://weibo.com/n/%1" ).arg( username );
  23.  }
  24.  
  25.  void SinaMicroBlog::retweetPost( Choqok::Account* theAccount, Choqok::Post* post )
RAW Paste Data