mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 08:21:47 +00:00
Merge pull request #2 from nbenaglia/feature/nip_36_approve_check
Move check for approve_content_warning
This commit is contained in:
commit
1294036699
@ -904,7 +904,7 @@ fn render_content(
|
||||
} else if app.render_qr == Some(event.id) {
|
||||
app.render_qr(ui, ctx, "feedqr", event.content.trim());
|
||||
// FIXME should this be the unmodified content (event.content)?
|
||||
} else if event.content_warning().is_some() && !app.approved.contains(&event.id)
|
||||
} else if event.content_warning().is_some() && !app.approved.contains(&event.id) && !app.settings.approve_content_warning
|
||||
{
|
||||
ui.label(
|
||||
RichText::new(format!(
|
||||
@ -914,7 +914,7 @@ fn render_content(
|
||||
.monospace()
|
||||
.italics(),
|
||||
);
|
||||
if ui.button("Show Post").clicked() || app.settings.approve_content_warning
|
||||
if ui.button("Show Post").clicked()
|
||||
{
|
||||
app.approved.insert(event.id);
|
||||
app.height.remove(&event.id); // will need to be recalculated.
|
||||
|
Loading…
Reference in New Issue
Block a user