mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-23 13:54:27 -04:00
Fix for Card View to show the Banned Image when author is banned.
This commit is contained in:
parent
05a97c13a7
commit
d8f65f0c76
1 changed files with 26 additions and 16 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue