mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-27 07:47:03 -05:00
Merge pull request #25 from defnax/boards-fix
Fix for Card View to show the Banned Image when author is banned.
This commit is contained in:
commit
e2b9100380
@ -479,6 +479,15 @@ void BoardPostDisplayWidget_card::setup()
|
|||||||
{
|
{
|
||||||
BoardPostDisplayWidgetBase::setup();
|
BoardPostDisplayWidgetBase::setup();
|
||||||
|
|
||||||
|
RsReputationLevel overall_reputation = rsReputations->overallReputationLevel(mPost.mMeta.mAuthorId);
|
||||||
|
bool redacted = (overall_reputation == RsReputationLevel::LOCALLY_NEGATIVE);
|
||||||
|
|
||||||
|
if(redacted)
|
||||||
|
{
|
||||||
|
ui->pictureLabel->setPixmap( FilesDefs::getPixmapFromQtResourcePath(":/images/thumb-blocked.png") );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
if(mPost.mImage.mData != NULL)
|
if(mPost.mImage.mData != NULL)
|
||||||
{
|
{
|
||||||
QPixmap pixmap;
|
QPixmap pixmap;
|
||||||
@ -497,6 +506,7 @@ void BoardPostDisplayWidget_card::setup()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
ui->pictureLabel->hide();
|
ui->pictureLabel->hide();
|
||||||
|
}
|
||||||
|
|
||||||
QTextDocument doc;
|
QTextDocument doc;
|
||||||
doc.setHtml(notes()->text());
|
doc.setHtml(notes()->text());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user