4 Commits

Author SHA1 Message Date
dec8a0660e css fix 2025-02-26 13:45:28 +01:00
283e25178b fix ecto bug related to pg_bouncer 2024-12-19 15:07:55 +01:00
4cde4c8f67 fix filtering ignored posts 2024-08-20 14:02:40 +02:00
d497eaa522 debug check_origin on render 2024-08-14 11:13:08 +02:00
3 changed files with 17 additions and 4 deletions

View File

@ -5,7 +5,7 @@
/* This file is for your main application CSS */ /* This file is for your main application CSS */
body { body {
@apply bg-base-300 text-[14pt] leading-8 overflow-x-hidden; @apply bg-base-300 font-['Inter'] text-[18px] leading-6 overflow-x-hidden;
} }
.post { .post {
@ -36,11 +36,14 @@ body {
.post .code pre:before { @apply mr-0; } .post .code pre:before { @apply mr-0; }
.post .code h5 { @apply hidden; } .post .code h5 { @apply hidden; }
.post a[href] { @apply link; } .post a[href] { @apply link; }
.post .bbc-block a[href] { @apply link; }
.post .editedby { @apply text-sm italic opacity-70 mt-4; } .post .editedby { @apply text-sm italic opacity-70 mt-4; }
.post .title :where(img[src*="gangtags"]) + * { .post .title :where(img[src*="gangtags"]) + * {
@apply mb-1; @apply mb-1;
} }
.post i, .post .bbc-spoiler, .post a[href] { @apply inline-block mx-1; }
.pagination a svg { .pagination a svg {
@apply h-5; @apply h-5;
} }

View File

@ -34,7 +34,8 @@ if config_env() == :prod do
# ssl: true, # ssl: true,
url: database_url, url: database_url,
pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"), pool_size: String.to_integer(System.get_env("POOL_SIZE") || "10"),
socket_options: maybe_ipv6 socket_options: maybe_ipv6,
prepare: :unnamed
# The secret key base is used to sign/encrypt cookies and other secrets. # The secret key base is used to sign/encrypt cookies and other secrets.
# A default value is used in config/dev.exs and config/test.exs but you # A default value is used in config/dev.exs and config/test.exs but you
@ -48,7 +49,11 @@ if config_env() == :prod do
You can generate one by calling: mix phx.gen.secret You can generate one by calling: mix phx.gen.secret
""" """
host = System.get_env("PHX_HOST") || "example.com" host =
System.get_env("PHX_HOST") ||
"example.com"
|> IO.inspect()
port = String.to_integer(System.get_env("PORT") || "4000") port = String.to_integer(System.get_env("PORT") || "4000")
config :something_erlang, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY") config :something_erlang, :dns_cluster_query, System.get_env("DNS_CLUSTER_QUERY")
@ -63,6 +68,7 @@ if config_env() == :prod do
ip: {0, 0, 0, 0, 0, 0, 0, 0}, ip: {0, 0, 0, 0, 0, 0, 0, 0},
port: port port: port
], ],
check_origin: [host],
secret_key_base: secret_key_base secret_key_base: secret_key_base
# ## SSL Support # ## SSL Support

View File

@ -35,7 +35,11 @@ defmodule SomethingErlang.AwfulApi.Thread do
end end
posts = posts =
for post <- Meeseeks.all(thread, css("table.post:not(.ignored)")) do for post <- Meeseeks.all(thread, css("table.post")),
post
|> Meeseeks.attr("class")
|> String.contains?("ignored")
|> Kernel.not() do
%{ %{
userinfo: userinfo(post), userinfo: userinfo(post),
postdate: postdate(post), postdate: postdate(post),