From 7b42657d1e7ad19b516d5c9241053dd25f9349df Mon Sep 17 00:00:00 2001 From: Philipp Date: Tue, 27 Dec 2022 20:08:33 +0100 Subject: [PATCH 1/7] Fix redirects --- src/BaseModule.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/BaseModule.php b/src/BaseModule.php index 12efbce81..11f884472 100644 --- a/src/BaseModule.php +++ b/src/BaseModule.php @@ -243,6 +243,14 @@ abstract class BaseModule implements ICanHandleRequests $this->response->addContent($arr['content']); $this->response->addContent($this->content($request)); } catch (HTTPException $e) { + // In case of System::externalRedirects(), we don't want to prettyprint the exception + // just redirect to the new location + if (($e instanceof HTTPException\FoundException) || + ($e instanceof HTTPException\MovedPermanentlyException) || + ($e instanceof HTTPException\TemporaryRedirectException)) { + throw $e; + } + $this->response->addContent($httpException->content($e)); } finally { $this->profiler->set(microtime(true) - $timestamp, 'content'); From fbb068e415e777c8118b763f882413f509916b4e Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 27 Dec 2022 21:12:23 -0500 Subject: [PATCH 2/7] [frio] Normalize display of plink/network icons between thread/search --- view/theme/frio/css/style.css | 4 ++++ view/theme/frio/templates/wall_thread.tpl | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/view/theme/frio/css/style.css b/view/theme/frio/css/style.css index 3f62919e5..be41e330f 100644 --- a/view/theme/frio/css/style.css +++ b/view/theme/frio/css/style.css @@ -1740,6 +1740,10 @@ aside .panel-body { border-top: none; color: inherit; } +.preferences .plink { + margin-left: 5px; +} + blockquote.shared_content { padding: 0px; margin-inline-start: 0px; diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index 862b7cc1b..c371e8d3f 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -140,7 +140,6 @@ as the value of $top_child_total (this is done at the end of this file) {{$item.network_name}} {{/if}} {{if $item.plink}} {{*link to the original source of the item *}} -   From 48e960cc844fa475ac7c10ad231e5ffc29782226 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 27 Dec 2022 21:12:48 -0500 Subject: [PATCH 3/7] [frio] Restore access to plink icon in thread view --- view/theme/frio/templates/wall_thread.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/theme/frio/templates/wall_thread.tpl b/view/theme/frio/templates/wall_thread.tpl index c371e8d3f..e2e2d52bf 100644 --- a/view/theme/frio/templates/wall_thread.tpl +++ b/view/theme/frio/templates/wall_thread.tpl @@ -146,7 +146,7 @@ as the value of $top_child_total (this is done at the end of this file) {{/if}} {{if $item.thread_level==1}} -