From a114a85de474282fedccb02563a2978633ec4e5f Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Mon, 30 Dec 2024 12:47:14 -0800 Subject: [PATCH] Google Translate links on Messages and Comments --- web/templates/forum/thread.html | 8 ++++++++ web/templates/inbox/inbox.html | 19 +++++++++++++++++++ web/templates/photo/permalink.html | 8 ++++++++ 3 files changed, 35 insertions(+) diff --git a/web/templates/forum/thread.html b/web/templates/forum/thread.html index 2332a78..c6c91ee 100644 --- a/web/templates/forum/thread.html +++ b/web/templates/forum/thread.html @@ -181,6 +181,14 @@ {{end}} +
+ + + Open in Google Translate + +
+ {{if and (eq $Root.Pager.Page 1) (eq $i 0) $Root.Thread.PollID}}

Poll

diff --git a/web/templates/inbox/inbox.html b/web/templates/inbox/inbox.html index 03edce4..56c293f 100644 --- a/web/templates/inbox/inbox.html +++ b/web/templates/inbox/inbox.html @@ -129,6 +129,17 @@ if you think it may be a scam. The certification requirement for {{PrettyTitle}} cannot guarantee protection against malicious intent.

+ +

+ Be especially skeptical of WhatsApp or trading phone numbers. + Scammers can do a lot of harm with just your phone number, e.g. by plugging it into a people search + website and bringing up lots of personal information about you (potentially for blackmail material). +

+ +

+ If you don't know @{{$Root.ReplyTo.Username}} + and they are asking you to exchange phone numbers (including WhatsApp!), please be careful! +

{{end}} @@ -157,6 +168,14 @@ Report {{end}} + +
+ + + Open in Google Translate + +

diff --git a/web/templates/photo/permalink.html b/web/templates/photo/permalink.html index ef10ad0..8f8fe77 100644 --- a/web/templates/photo/permalink.html +++ b/web/templates/photo/permalink.html @@ -312,6 +312,14 @@ {{end}} +
+ + + Open in Google Translate + +
+