mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
added display for author of forum posts
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@865 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
16cc1b2a90
commit
67b6b24e63
2 changed files with 11 additions and 3 deletions
|
@ -23,6 +23,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "rsiface/rspeers.h"
|
||||
#include "services/p3forums.h"
|
||||
|
||||
uint32_t convertToInternalFlags(uint32_t extFlags);
|
||||
|
@ -232,7 +233,7 @@ bool p3Forums::getForumMessage(std::string fId, std::string mId, ForumMsgInfo &i
|
|||
|
||||
info.title = fmsg->title;
|
||||
info.msg = fmsg->msg;
|
||||
info.srcId = "SRC";
|
||||
info.srcId = rsPeers->getPeerName(fmsg->srcId);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -285,6 +286,7 @@ std::string p3Forums::createForumMsg(std::string fId, std::string pId,
|
|||
|
||||
fmsg->title = title;
|
||||
fmsg->msg = msg;
|
||||
fmsg->srcId = rsPeers->getOwnId();
|
||||
fmsg->timestamp = time(NULL);
|
||||
|
||||
std::string msgId = publishMsg(fmsg, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue