mirror of
https://github.com/4cuck/teapawt.git
synced 2026-10-27 19:04:35 +00:00
Ask for another $120 and drop the imageboard links from the nav.
The first donation goal is met, search spam is burning accounts, and those sister-site icons do not belong on the public bar. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
24ad9d0dfe
commit
1143f95bf4
3 files changed
+12
-36
No files matched your search
@@ -75,7 +75,7 @@ async fn page(state: &AppState, jar: &CookieJar, message: Option<&str>, canceled
|
||||
canceled,
|
||||
);
|
||||
let markup = PageLayout::new(&state.config, "Donate", content)
|
||||
.description("Donate to keep nitter.cf online")
|
||||
.description("Donate to keep xitter.cf online")
|
||||
.prefs(&prefs)
|
||||
.referer("/donate")
|
||||
.render();
|
||||
@@ -187,7 +187,7 @@ async fn thanks(
|
||||
let prefs = Prefs::from_cookies(&jar, &state.config);
|
||||
let content = donate_view::render_thanks(confirmed, &provider);
|
||||
let markup = PageLayout::new(&state.config, "Thank you", content)
|
||||
.description("Thank you for donating to nitter.cf")
|
||||
.description("Thank you for donating to xitter.cf")
|
||||
.prefs(&prefs)
|
||||
.referer("/donate")
|
||||
.render();
|
||||
|
||||
+10
-7
@@ -5,11 +5,12 @@ use crate::donations::{self, format_usd};
|
||||
pub fn donate_drive_banner(raised_cents: i64, goal_cents: i64) -> Markup {
|
||||
html! {
|
||||
aside class="donate-drive" {
|
||||
strong { "nitter.cf needs " (format_usd(goal_cents)) " by October 23 to stay online." }
|
||||
strong { "The " (format_usd(goal_cents)) " goal is met. xitter.cf needs another $120 for more X accounts." }
|
||||
p {
|
||||
"Servers, bandwidth, and the accounts that keep this instance up are due then. "
|
||||
"About 1,000 accounts are in rotation. Someone is spamming search, which rate-limits the proxy IPs and uses up those accounts. "
|
||||
"Cloudflare Turnstile is on for now so that spam stops. "
|
||||
@if raised_cents > 0 {
|
||||
"Raised " (format_usd(raised_cents)) " of " (format_usd(goal_cents)) ". "
|
||||
"Raised " (format_usd(raised_cents)) " so far. "
|
||||
}
|
||||
a href="/donate" { "Donate any amount" }
|
||||
" up to $10,000."
|
||||
@@ -20,7 +21,7 @@ pub fn donate_drive_banner(raised_cents: i64, goal_cents: i64) -> Markup {
|
||||
". I will add it as quickly as I can."
|
||||
}
|
||||
p {
|
||||
"If we raise more than it costs to keep the site running, I will add posting, liking, and reposting on nitter.cf, so you can post what you want through our residential proxies, consequence free. I will also add thousands of accounts so you can ban evade on X effortlessly through this site."
|
||||
"If we raise more than it costs to keep the site running, I will add posting, liking, and reposting on xitter.cf, so you can post what you want through our residential proxies, consequence free. I will also add thousands of accounts so you can ban evade on X effortlessly through this site."
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -40,7 +41,9 @@ pub fn render_donate_page(
|
||||
div class="overlay-panel donate-page" {
|
||||
h1 { "Donate" }
|
||||
p {
|
||||
"nitter.cf needs " (format_usd(goal_cents)) " by October 23, 2026 to keep running. "
|
||||
"The " (format_usd(goal_cents)) " goal is met. Another $120 buys more X accounts. "
|
||||
"About 1,000 accounts are in rotation. Someone is spamming search, which rate-limits the proxy IPs and uses up those accounts. "
|
||||
"Cloudflare Turnstile is on for now so that spam stops. "
|
||||
@if raised_cents > 0 {
|
||||
"Raised " (format_usd(raised_cents)) " so far. "
|
||||
}
|
||||
@@ -80,7 +83,7 @@ pub fn render_donate_page(
|
||||
". I will add it as quickly as I can."
|
||||
}
|
||||
p class="donate-note" {
|
||||
"If we raise more than it costs to keep the site running, I will add posting, liking, and reposting on nitter.cf, so you can post what you want through our residential proxies, consequence free. I will also add thousands of accounts so you can ban evade on X effortlessly through this site."
|
||||
"If we raise more than it costs to keep the site running, I will add posting, liking, and reposting on xitter.cf, so you can post what you want through our residential proxies, consequence free. I will also add thousands of accounts so you can ban evade on X effortlessly through this site."
|
||||
}
|
||||
} @else {
|
||||
p class="donate-status" { "Donations are not set up on this instance yet." }
|
||||
@@ -94,7 +97,7 @@ pub fn render_thanks(confirmed: bool, provider: &str) -> Markup {
|
||||
div class="overlay-panel donate-page" {
|
||||
h1 { "Thank you" }
|
||||
@if confirmed {
|
||||
p { "Your donation was received. It keeps nitter.cf online." }
|
||||
p { "Your donation was received. It keeps xitter.cf online." }
|
||||
} @else if provider == "nowpayments" {
|
||||
p { "If the crypto payment has been sent, it shows up here after the network confirms it." }
|
||||
} @else {
|
||||
|
||||
@@ -280,24 +280,6 @@ impl<'a> PageLayout<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
const SOYJAK_ICONS: &[&str] = &[
|
||||
"/public/icons/soyjak-babyjak.png",
|
||||
"/public/icons/soyjak-cobson.png",
|
||||
"/public/icons/soyjak-feraljak.png",
|
||||
"/public/icons/soyjak-flartson.png",
|
||||
"/public/icons/soyjak-gapejak.png",
|
||||
"/public/icons/soyjak-soyjak.png",
|
||||
];
|
||||
|
||||
fn random_soyjak_icon() -> &'static str {
|
||||
let idx = std::time::SystemTime::now()
|
||||
.duration_since(std::time::UNIX_EPOCH)
|
||||
.map_or(0, |elapsed| {
|
||||
elapsed.subsec_nanos() as usize % SOYJAK_ICONS.len()
|
||||
});
|
||||
SOYJAK_ICONS[idx]
|
||||
}
|
||||
|
||||
/// Render navbar with all context.
|
||||
pub fn render_navbar_full(config: &Config, rss: &str, canonical: &str, referer: &str) -> Markup {
|
||||
let canonical = if canonical.is_empty() {
|
||||
@@ -325,15 +307,6 @@ pub fn render_navbar_full(config: &Config, rss: &str, canonical: &str, referer:
|
||||
}
|
||||
}
|
||||
div class="nav-item right" {
|
||||
a class="nav-icon sister-site" title="owo.vg — 4chan frontend" href="https://owo.vg" target="_blank" rel="noopener noreferrer" {
|
||||
img src="/public/icons/4chan.png" alt="4chan" width="22" height="22";
|
||||
}
|
||||
a class="nav-icon sister-site" title="soyjak.cf — soyjak.st frontend" href="https://soyjak.cf" target="_blank" rel="noopener noreferrer" {
|
||||
img src=(random_soyjak_icon()) alt="soyjak" width="22" height="22";
|
||||
}
|
||||
a class="nav-icon sister-site" title="awoo.cf — imageboard" href="https://awoo.cf" target="_blank" rel="noopener noreferrer" {
|
||||
img src="/public/icons/awoo.png" alt="awoo" width="22" height="22";
|
||||
}
|
||||
a class="nav-icon" title="Search" href="/search" {
|
||||
span class="icon-search" aria-hidden="true" {}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user