From c45f6501f501a65f753604bfd2341035ae12fd30 Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Wed, 16 Aug 2023 12:49:23 -0400 Subject: Make quick_read_setting() a templated method This allows terser usage and removes the need for manually invoking QVariant's .value() method. --- src/activitypub/apactivity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/activitypub/apactivity.cpp') diff --git a/src/activitypub/apactivity.cpp b/src/activitypub/apactivity.cpp index 3bc6444..6717731 100644 --- a/src/activitypub/apactivity.cpp +++ b/src/activitypub/apactivity.cpp @@ -42,7 +42,7 @@ QString APActivity::get_html_render(HtmlRenderDetails render_info) { html.replace("{{object}}", object->get_html_render(render_info)); if (published.isValid()) html.replace("{{published}}", render_info.locale->toString( - SettingsInterface::quick_read_setting("ui/timezone").value() ? published.toUTC() : published.toLocalTime() + SettingsInterface::quick_read_setting("ui/timezone") ? published.toUTC() : published.toLocalTime() )); return html; -- cgit v1.2.3-54-g00ecf