void MessageWorker::kudosMessage(QString messageId, QString authorId)
{
	Authenticator* auth = Authenticator::Instance();

	if (auth->authenticated() && authorId.contains(auth->userId(), Qt::CaseInsensitive))
	{
		emit postComplete(false, tr("You cannot like your own posts."));
	}
	else
	{
		const QString kudosUrl = URLProvider::getForumURL() + QString::fromLatin1("messages/id/%1/kudos/give").arg(messageId);
		mForumRequest->makeRequest(kudosUrl, true);
	}
}
void Searcher::findUsersPosts(QString pageNo)
{
	Authenticator* auth = Authenticator::Instance();
	if (auth->authenticated())
	{
		mSearchData->clear();
		QString queryUrl =
				URLProvider::getForumURL() + QString::fromLatin1("users/%1/posts/messages?message_viewer.message_sort_order=thread_descending&page_size=10&page=%2").arg(auth->userId(), pageNo);
		mForumRequest->makeRequest(queryUrl);
	}
	else
	{
		emit searchRequestFailed(tr("You must be logged into view your posts. Swipe down from the top of the screen and choose Settings to log in."));
	}
}