Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa07fe0edd | ||
|
|
67874636d2 | ||
|
|
c316c39860 |
+24
-7
@@ -32,11 +32,26 @@ function build_filters(array $opts): array {
|
||||
}
|
||||
}
|
||||
|
||||
// Max age filter
|
||||
$max_age_days = intval($opts['max_age_days'] ?? 0);
|
||||
if ($max_age_days > 0) {
|
||||
$conds[] = 'e.created_at < EXTRACT(EPOCH FROM NOW())::BIGINT - :max_age_seconds';
|
||||
$params[':max_age_seconds'] = $max_age_days * 86400;
|
||||
// Date/time range filter (supports YYYY-MM-DD or YYYY-MM-DD HH:MM)
|
||||
$from_date = $opts['from_date'] ?? '';
|
||||
$to_date = $opts['to_date'] ?? '';
|
||||
if ($from_date !== '') {
|
||||
if (preg_match('/^\d{4}-\d{2}-\d{2}$/', $from_date)) {
|
||||
$conds[] = 'e.created_at >= EXTRACT(EPOCH FROM :from_date::date)::BIGINT';
|
||||
$params[':from_date'] = $from_date;
|
||||
} elseif (preg_match('/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/', $from_date)) {
|
||||
$conds[] = 'e.created_at >= EXTRACT(EPOCH FROM :from_date::timestamp)::BIGINT';
|
||||
$params[':from_date'] = $from_date . ':00';
|
||||
}
|
||||
}
|
||||
if ($to_date !== '') {
|
||||
if (preg_match('/^\d{4}-\d{2}-\d{2}$/', $to_date)) {
|
||||
$conds[] = 'e.created_at < (EXTRACT(EPOCH FROM :to_date::date)::BIGINT + 86400)';
|
||||
$params[':to_date'] = $to_date;
|
||||
} elseif (preg_match('/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/', $to_date)) {
|
||||
$conds[] = 'e.created_at < EXTRACT(EPOCH FROM :to_date::timestamp)::BIGINT';
|
||||
$params[':to_date'] = $to_date . ':00';
|
||||
}
|
||||
}
|
||||
|
||||
// Follows filter
|
||||
@@ -69,7 +84,8 @@ if ($method === 'GET') {
|
||||
$opts = [
|
||||
'follows_filter' => $_GET['follows_filter'] ?? 'all',
|
||||
'kinds' => $_GET['kinds'] ?? '',
|
||||
'max_age_days' => intval($_GET['max_age_days'] ?? 0),
|
||||
'from_date' => $_GET['from_date'] ?? '',
|
||||
'to_date' => $_GET['to_date'] ?? '',
|
||||
'max_events' => intval($_GET['max_events'] ?? 0),
|
||||
];
|
||||
|
||||
@@ -167,7 +183,8 @@ if ($method === 'POST') {
|
||||
$opts = [
|
||||
'follows_filter' => $body['follows_filter'] ?? 'all',
|
||||
'kinds' => $body['kinds'] ?? [],
|
||||
'max_age_days' => intval($body['max_age_days'] ?? 0),
|
||||
'from_date' => $body['from_date'] ?? '',
|
||||
'to_date' => $body['to_date'] ?? '',
|
||||
'max_events' => intval($body['max_events'] ?? 0),
|
||||
];
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ function fmt_bytes(int $bytes): string {
|
||||
if ($method === 'GET') {
|
||||
try {
|
||||
$rows = $pdo->query(
|
||||
"SELECT id, name, follows_filter, kinds, max_age_days, max_events,\n"
|
||||
"SELECT id, name, follows_filter, kinds, from_date, to_date, max_events,\n"
|
||||
. " last_preview_count, last_preview_size_bytes,\n"
|
||||
. " last_executed_at, created_at, updated_at\n"
|
||||
. " FROM cleanup_saved_queries\n"
|
||||
@@ -50,7 +50,8 @@ if ($method === 'GET') {
|
||||
'name' => $r['name'],
|
||||
'follows_filter' => $r['follows_filter'],
|
||||
'kinds' => $kinds,
|
||||
'max_age_days' => intval($r['max_age_days']),
|
||||
'from_date' => $r['from_date'] ?? '',
|
||||
'to_date' => $r['to_date'] ?? '',
|
||||
'max_events' => intval($r['max_events']),
|
||||
'last_preview_count' => intval($r['last_preview_count']),
|
||||
'last_preview_size_human' => fmt_bytes(intval($r['last_preview_size_bytes'])),
|
||||
@@ -101,8 +102,9 @@ if ($method === 'POST') {
|
||||
// PostgreSQL array literal
|
||||
$kinds_pg = '{' . implode(',', $kinds) . '}';
|
||||
|
||||
$max_age_days = intval($body['max_age_days'] ?? 0);
|
||||
$max_events = intval($body['max_events'] ?? 0);
|
||||
$from_date = $body['from_date'] ?? '';
|
||||
$to_date = $body['to_date'] ?? '';
|
||||
$max_events = intval($body['max_events'] ?? 0);
|
||||
|
||||
try {
|
||||
if ($id) {
|
||||
@@ -112,7 +114,8 @@ if ($method === 'POST') {
|
||||
. " SET name = :name,\n"
|
||||
. " follows_filter = :follows_filter,\n"
|
||||
. " kinds = :kinds::integer[],\n"
|
||||
. " max_age_days = :max_age_days,\n"
|
||||
. " from_date = :from_date,\n"
|
||||
. " to_date = :to_date,\n"
|
||||
. " max_events = :max_events,\n"
|
||||
. " updated_at = EXTRACT(EPOCH FROM NOW())::BIGINT\n"
|
||||
. " WHERE id = :id"
|
||||
@@ -122,20 +125,22 @@ if ($method === 'POST') {
|
||||
':name' => $name,
|
||||
':follows_filter' => $follows_filter,
|
||||
':kinds' => $kinds_pg,
|
||||
':max_age_days' => $max_age_days,
|
||||
':from_date' => $from_date,
|
||||
':to_date' => $to_date,
|
||||
':max_events' => $max_events,
|
||||
]);
|
||||
} else {
|
||||
// Insert new
|
||||
$stmt = $pdo->prepare(
|
||||
"INSERT INTO cleanup_saved_queries\n"
|
||||
. " (name, follows_filter, kinds, max_age_days, max_events)\n"
|
||||
. " (name, follows_filter, kinds, from_date, to_date, max_events)\n"
|
||||
. "VALUES (:name, :follows_filter, :kinds::integer[],\n"
|
||||
. " :max_age_days, :max_events)\n"
|
||||
. " :from_date, :to_date, :max_events)\n"
|
||||
. "ON CONFLICT (name) DO UPDATE SET\n"
|
||||
. " follows_filter = EXCLUDED.follows_filter,\n"
|
||||
. " kinds = EXCLUDED.kinds,\n"
|
||||
. " max_age_days = EXCLUDED.max_age_days,\n"
|
||||
. " from_date = EXCLUDED.from_date,\n"
|
||||
. " to_date = EXCLUDED.to_date,\n"
|
||||
. " max_events = EXCLUDED.max_events,\n"
|
||||
. " updated_at = EXTRACT(EPOCH FROM NOW())::BIGINT"
|
||||
);
|
||||
@@ -143,7 +148,8 @@ if ($method === 'POST') {
|
||||
':name' => $name,
|
||||
':follows_filter' => $follows_filter,
|
||||
':kinds' => $kinds_pg,
|
||||
':max_age_days' => $max_age_days,
|
||||
':from_date' => $from_date,
|
||||
':to_date' => $to_date,
|
||||
':max_events' => $max_events,
|
||||
]);
|
||||
$id = $pdo->lastInsertId();
|
||||
@@ -186,7 +192,7 @@ if ($method === 'POST') {
|
||||
// Load the saved query
|
||||
try {
|
||||
$stmt = $pdo->prepare(
|
||||
"SELECT id, name, follows_filter, kinds, max_age_days, max_events\n"
|
||||
"SELECT id, name, follows_filter, kinds, from_date, to_date, max_events\n"
|
||||
. " FROM cleanup_saved_queries\n"
|
||||
. " WHERE id = :id"
|
||||
);
|
||||
@@ -225,10 +231,25 @@ if ($method === 'POST') {
|
||||
$conds[] = 'e.kind IN (' . implode(',', $kind_placeholders) . ')';
|
||||
}
|
||||
|
||||
$max_age_days = intval($query['max_age_days']);
|
||||
if ($max_age_days > 0) {
|
||||
$conds[] = 'e.created_at < EXTRACT(EPOCH FROM NOW())::BIGINT - :max_age_seconds';
|
||||
$params[':max_age_seconds'] = $max_age_days * 86400;
|
||||
$from_date = $query['from_date'] ?? '';
|
||||
$to_date = $query['to_date'] ?? '';
|
||||
if ($from_date !== '') {
|
||||
if (preg_match('/^\d{4}-\d{2}-\d{2}$/', $from_date)) {
|
||||
$conds[] = 'e.created_at >= EXTRACT(EPOCH FROM :from_date::date)::BIGINT';
|
||||
$params[':from_date'] = $from_date;
|
||||
} elseif (preg_match('/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/', $from_date)) {
|
||||
$conds[] = 'e.created_at >= EXTRACT(EPOCH FROM :from_date::timestamp)::BIGINT';
|
||||
$params[':from_date'] = $from_date . ':00';
|
||||
}
|
||||
}
|
||||
if ($to_date !== '') {
|
||||
if (preg_match('/^\d{4}-\d{2}-\d{2}$/', $to_date)) {
|
||||
$conds[] = 'e.created_at < (EXTRACT(EPOCH FROM :to_date::date)::BIGINT + 86400)';
|
||||
$params[':to_date'] = $to_date;
|
||||
} elseif (preg_match('/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/', $to_date)) {
|
||||
$conds[] = 'e.created_at < EXTRACT(EPOCH FROM :to_date::timestamp)::BIGINT';
|
||||
$params[':to_date'] = $to_date . ':00';
|
||||
}
|
||||
}
|
||||
|
||||
$follows_filter = $query['follows_filter'];
|
||||
|
||||
+36
-11
@@ -702,9 +702,11 @@ async function loadCleanupQueries() {
|
||||
: q.follows_filter === 'follows' ? 'Follows'
|
||||
: 'Non-follows';
|
||||
const kindsStr = q.kinds && q.kinds.length > 0 ? q.kinds.join(', ') : 'all';
|
||||
const ageStr = q.max_age_days > 0 ? q.max_age_days + 'd' : '∞';
|
||||
const dateStr = (q.from_date || q.to_date)
|
||||
? `${q.from_date || '…'} → ${q.to_date || '…'}`
|
||||
: 'no date bound';
|
||||
const limitStr = q.max_events > 0 ? q.max_events.toLocaleString() : '∞';
|
||||
const filters = `${filterLabel} | kinds: ${kindsStr} | age: ${ageStr} | max: ${limitStr}`;
|
||||
const filters = `${filterLabel} | kinds: ${kindsStr} | ${dateStr} | max: ${limitStr}`;
|
||||
const previewInfo = q.last_preview_count > 0
|
||||
? `${q.last_preview_count.toLocaleString()} evts (${q.last_preview_size_human})`
|
||||
: '—';
|
||||
@@ -733,22 +735,34 @@ function newCleanupQuery() {
|
||||
r.checked = r.value === 'all';
|
||||
});
|
||||
document.getElementById('cleanup-kinds').value = '';
|
||||
document.getElementById('cleanup-max-age').value = '0';
|
||||
document.getElementById('cleanup-from-date').value = '';
|
||||
document.getElementById('cleanup-from-time').value = '';
|
||||
document.getElementById('cleanup-to-date').value = '';
|
||||
document.getElementById('cleanup-to-time').value = '';
|
||||
document.getElementById('cleanup-max-events').value = '0';
|
||||
document.getElementById('cleanup-results-group').style.display = 'none';
|
||||
document.getElementById('cleanup-name').focus();
|
||||
}
|
||||
|
||||
// ── Combine date + time inputs into a single datetime string ───────────
|
||||
function combineDateTime(dateId, timeId) {
|
||||
const dateVal = document.getElementById(dateId).value;
|
||||
const timeVal = document.getElementById(timeId).value;
|
||||
if (!dateVal) return '';
|
||||
return timeVal ? dateVal + ' ' + timeVal : dateVal;
|
||||
}
|
||||
|
||||
// ── Read filter values from the form ───────────────────────────────────
|
||||
function readCleanupFilters() {
|
||||
const followsEl = document.querySelector('input[name="cleanup-follows"]:checked');
|
||||
const follows_filter = followsEl ? followsEl.value : 'all';
|
||||
const kindsRaw = document.getElementById('cleanup-kinds').value.trim();
|
||||
const kinds = kindsRaw ? kindsRaw.split(',').map(s => parseInt(s.trim(), 10)).filter(n => !isNaN(n) && n > 0) : [];
|
||||
const max_age_days = parseInt(document.getElementById('cleanup-max-age').value, 10) || 0;
|
||||
const from_date = combineDateTime('cleanup-from-date', 'cleanup-from-time');
|
||||
const to_date = combineDateTime('cleanup-to-date', 'cleanup-to-time');
|
||||
const max_events = parseInt(document.getElementById('cleanup-max-events').value, 10) || 0;
|
||||
const name = document.getElementById('cleanup-name').value.trim();
|
||||
return { name, follows_filter, kinds, max_age_days, max_events };
|
||||
return { name, follows_filter, kinds, from_date, to_date, max_events };
|
||||
}
|
||||
|
||||
// ── Preview ────────────────────────────────────────────────────────────
|
||||
@@ -757,7 +771,8 @@ async function previewCleanup(queryId) {
|
||||
const params = new URLSearchParams();
|
||||
params.set('follows_filter', filters.follows_filter);
|
||||
if (filters.kinds.length > 0) params.set('kinds', filters.kinds.join(','));
|
||||
if (filters.max_age_days > 0) params.set('max_age_days', String(filters.max_age_days));
|
||||
if (filters.from_date) params.set('from_date', filters.from_date);
|
||||
if (filters.to_date) params.set('to_date', filters.to_date);
|
||||
if (filters.max_events > 0) params.set('max_events', String(filters.max_events));
|
||||
if (queryId) params.set('query_id', String(queryId));
|
||||
|
||||
@@ -835,7 +850,8 @@ async function saveCleanupQuery() {
|
||||
name: filters.name,
|
||||
follows_filter: filters.follows_filter,
|
||||
kinds: filters.kinds,
|
||||
max_age_days: filters.max_age_days,
|
||||
from_date: filters.from_date,
|
||||
to_date: filters.to_date,
|
||||
max_events: filters.max_events,
|
||||
};
|
||||
|
||||
@@ -864,7 +880,8 @@ async function executeCleanup() {
|
||||
const params = new URLSearchParams();
|
||||
params.set('follows_filter', filters.follows_filter);
|
||||
if (filters.kinds.length > 0) params.set('kinds', filters.kinds.join(','));
|
||||
if (filters.max_age_days > 0) params.set('max_age_days', String(filters.max_age_days));
|
||||
if (filters.from_date) params.set('from_date', filters.from_date);
|
||||
if (filters.to_date) params.set('to_date', filters.to_date);
|
||||
if (filters.max_events > 0) params.set('max_events', String(filters.max_events));
|
||||
|
||||
try {
|
||||
@@ -893,7 +910,8 @@ async function executeCleanupConfirmed() {
|
||||
const body = {
|
||||
follows_filter: filters.follows_filter,
|
||||
kinds: filters.kinds,
|
||||
max_age_days: filters.max_age_days,
|
||||
from_date: filters.from_date,
|
||||
to_date: filters.to_date,
|
||||
max_events: filters.max_events,
|
||||
dry_run: false,
|
||||
};
|
||||
@@ -942,7 +960,13 @@ async function loadSavedCleanupQuery(id) {
|
||||
r.checked = r.value === q.follows_filter;
|
||||
});
|
||||
document.getElementById('cleanup-kinds').value = (q.kinds || []).join(', ');
|
||||
document.getElementById('cleanup-max-age').value = q.max_age_days;
|
||||
// Split stored datetime into date + time parts
|
||||
const fromParts = (q.from_date || '').split(' ');
|
||||
document.getElementById('cleanup-from-date').value = fromParts[0] || '';
|
||||
document.getElementById('cleanup-from-time').value = fromParts[1] || '';
|
||||
const toParts = (q.to_date || '').split(' ');
|
||||
document.getElementById('cleanup-to-date').value = toParts[0] || '';
|
||||
document.getElementById('cleanup-to-time').value = toParts[1] || '';
|
||||
document.getElementById('cleanup-max-events').value = q.max_events;
|
||||
document.getElementById('cleanup-results-group').style.display = 'none';
|
||||
|
||||
@@ -985,7 +1009,8 @@ async function runSavedCleanupExecute(id) {
|
||||
const msg = `Query: ${name}\n`
|
||||
+ `Follows: ${q.follows_filter}\n`
|
||||
+ `Kinds: ${(q.kinds || []).join(', ') || 'all'}\n`
|
||||
+ `Max age: ${q.max_age_days > 0 ? q.max_age_days + ' days' : 'no limit'}\n`
|
||||
+ `From: ${q.from_date || 'no bound'}\n`
|
||||
+ `To: ${q.to_date || 'no bound'}\n`
|
||||
+ `Max events: ${q.max_events > 0 ? q.max_events.toLocaleString() : 'no limit'}`;
|
||||
document.getElementById('cleanup-confirm-msg').textContent = msg;
|
||||
document.getElementById('cleanup-confirm-btn').onclick = async () => {
|
||||
|
||||
@@ -281,6 +281,39 @@ body {
|
||||
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
/* Cleanup Date/Time Inputs */
|
||||
.datetime-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.cleanup-date-input {
|
||||
font-family: var(--font-family);
|
||||
font-size: 13px;
|
||||
padding: 4px 6px;
|
||||
border: var(--border-width) solid var(--border-color);
|
||||
border-radius: var(--border-radius);
|
||||
background: var(--secondary-color);
|
||||
color: var(--primary-color);
|
||||
width: 160px;
|
||||
}
|
||||
.cleanup-time-input {
|
||||
font-family: var(--font-family);
|
||||
font-size: 13px;
|
||||
padding: 4px 6px;
|
||||
border: var(--border-width) solid var(--border-color);
|
||||
border-radius: var(--border-radius);
|
||||
background: var(--secondary-color);
|
||||
color: var(--primary-color);
|
||||
width: 110px;
|
||||
}
|
||||
.datetime-hint {
|
||||
font-size: 11px;
|
||||
color: var(--muted-color);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Cleanup Confirmation Modal */
|
||||
.modal-overlay {
|
||||
position: fixed;
|
||||
|
||||
+14
-2
@@ -453,8 +453,20 @@ $display_name = $relay_version ? ($relay_name . ' ' . $relay_version) : $relay_n
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="cleanup-max-age">Max Age (days, 0 = no limit):</label>
|
||||
<input type="number" id="cleanup-max-age" value="0" min="0" style="width:120px">
|
||||
<label>From (delete events after this):</label>
|
||||
<div class="datetime-group">
|
||||
<input type="date" id="cleanup-from-date" class="cleanup-date-input">
|
||||
<input type="time" id="cleanup-from-time" class="cleanup-time-input">
|
||||
<span class="datetime-hint">leave empty for no bound</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label>To (delete events before this):</label>
|
||||
<div class="datetime-group">
|
||||
<input type="date" id="cleanup-to-date" class="cleanup-date-input">
|
||||
<input type="time" id="cleanup-to-time" class="cleanup-time-input">
|
||||
<span class="datetime-hint">leave empty for no bound</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="cleanup-max-events">Max Events (0 = no limit):</label>
|
||||
|
||||
@@ -3834,3 +3834,177 @@ Stack trace:
|
||||
[Sun Aug 2 17:37:05 2026] 127.0.0.1:42404 Accepted
|
||||
[Sun Aug 2 17:37:05 2026] 127.0.0.1:42404 [200]: GET /api/cleanup_queries.php
|
||||
[Sun Aug 2 17:37:05 2026] 127.0.0.1:42404 Closing
|
||||
[Sun Aug 2 17:39:24 2026] 127.0.0.1:52106 Accepted
|
||||
[Sun Aug 2 17:39:24 2026] 127.0.0.1:52106 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:39:24 2026] 127.0.0.1:52106 Closing
|
||||
[Sun Aug 2 17:39:24 2026] 127.0.0.1:52116 Accepted
|
||||
[Sun Aug 2 17:39:24 2026] 127.0.0.1:52116 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:39:24 2026] 127.0.0.1:52116 Closing
|
||||
[Sun Aug 2 17:39:34 2026] 127.0.0.1:37848 Accepted
|
||||
[Sun Aug 2 17:39:34 2026] 127.0.0.1:37848 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:39:34 2026] 127.0.0.1:37848 Closing
|
||||
[Sun Aug 2 17:39:44 2026] 127.0.0.1:51354 Accepted
|
||||
[Sun Aug 2 17:39:44 2026] 127.0.0.1:51354 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:39:44 2026] 127.0.0.1:51354 Closing
|
||||
[Sun Aug 2 17:39:54 2026] 127.0.0.1:33746 Accepted
|
||||
[Sun Aug 2 17:39:54 2026] 127.0.0.1:33746 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:39:54 2026] 127.0.0.1:33746 Closing
|
||||
[Sun Aug 2 17:40:04 2026] 127.0.0.1:52364 Accepted
|
||||
[Sun Aug 2 17:40:04 2026] 127.0.0.1:52364 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:40:04 2026] 127.0.0.1:52364 Closing
|
||||
[Sun Aug 2 17:40:14 2026] 127.0.0.1:46640 Accepted
|
||||
[Sun Aug 2 17:40:14 2026] 127.0.0.1:46640 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:40:14 2026] 127.0.0.1:46640 Closing
|
||||
[Sun Aug 2 17:40:24 2026] 127.0.0.1:32844 Accepted
|
||||
[Sun Aug 2 17:40:24 2026] 127.0.0.1:32844 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:40:24 2026] 127.0.0.1:32844 Closing
|
||||
[Sun Aug 2 17:40:34 2026] 127.0.0.1:37218 Accepted
|
||||
[Sun Aug 2 17:40:34 2026] 127.0.0.1:37218 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:40:34 2026] 127.0.0.1:37218 Closing
|
||||
[Sun Aug 2 17:40:44 2026] 127.0.0.1:53012 Accepted
|
||||
[Sun Aug 2 17:40:44 2026] 127.0.0.1:53012 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:40:44 2026] 127.0.0.1:53012 Closing
|
||||
[Sun Aug 2 17:40:54 2026] 127.0.0.1:47382 Accepted
|
||||
[Sun Aug 2 17:40:54 2026] 127.0.0.1:47382 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:40:54 2026] 127.0.0.1:47382 Closing
|
||||
[Sun Aug 2 17:41:04 2026] 127.0.0.1:56362 Accepted
|
||||
[Sun Aug 2 17:41:04 2026] 127.0.0.1:56362 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:41:04 2026] 127.0.0.1:56362 Closing
|
||||
[Sun Aug 2 17:41:14 2026] 127.0.0.1:58268 Accepted
|
||||
[Sun Aug 2 17:41:14 2026] 127.0.0.1:58268 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:41:14 2026] 127.0.0.1:58268 Closing
|
||||
[Sun Aug 2 17:41:24 2026] 127.0.0.1:38366 Accepted
|
||||
[Sun Aug 2 17:41:24 2026] 127.0.0.1:38366 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:41:24 2026] 127.0.0.1:38366 Closing
|
||||
[Sun Aug 2 17:41:34 2026] 127.0.0.1:59490 Accepted
|
||||
[Sun Aug 2 17:41:34 2026] 127.0.0.1:59490 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:41:34 2026] 127.0.0.1:59490 Closing
|
||||
[Sun Aug 2 17:41:44 2026] 127.0.0.1:46120 Accepted
|
||||
[Sun Aug 2 17:41:44 2026] 127.0.0.1:46120 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:41:44 2026] 127.0.0.1:46120 Closing
|
||||
[Sun Aug 2 17:41:54 2026] 127.0.0.1:45214 Accepted
|
||||
[Sun Aug 2 17:41:54 2026] 127.0.0.1:45214 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:41:54 2026] 127.0.0.1:45214 Closing
|
||||
[Sun Aug 2 17:42:00 2026] 127.0.0.1:45216 Accepted
|
||||
[Sun Aug 2 17:42:00 2026] 127.0.0.1:45216 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:42:00 2026] 127.0.0.1:45216 Closing
|
||||
[Sun Aug 2 17:42:00 2026] 127.0.0.1:45220 Accepted
|
||||
[Sun Aug 2 17:42:00 2026] 127.0.0.1:45220 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:42:00 2026] 127.0.0.1:45220 Closing
|
||||
[Sun Aug 2 17:42:04 2026] 127.0.0.1:37990 Accepted
|
||||
[Sun Aug 2 17:42:04 2026] 127.0.0.1:37990 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:42:04 2026] 127.0.0.1:37990 Closing
|
||||
[Sun Aug 2 17:42:14 2026] 127.0.0.1:55332 Accepted
|
||||
[Sun Aug 2 17:42:14 2026] 127.0.0.1:55332 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:42:14 2026] 127.0.0.1:55332 Closing
|
||||
[Sun Aug 2 17:42:24 2026] 127.0.0.1:41788 Accepted
|
||||
[Sun Aug 2 17:42:24 2026] 127.0.0.1:41788 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:42:24 2026] 127.0.0.1:41788 Closing
|
||||
[Sun Aug 2 17:42:34 2026] 127.0.0.1:40948 Accepted
|
||||
[Sun Aug 2 17:42:34 2026] 127.0.0.1:40948 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:42:34 2026] 127.0.0.1:40948 Closing
|
||||
[Sun Aug 2 17:42:44 2026] 127.0.0.1:51876 Accepted
|
||||
[Sun Aug 2 17:42:44 2026] 127.0.0.1:51876 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:42:44 2026] 127.0.0.1:51876 Closing
|
||||
[Sun Aug 2 17:42:54 2026] 127.0.0.1:39890 Accepted
|
||||
[Sun Aug 2 17:42:54 2026] 127.0.0.1:39890 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:42:54 2026] 127.0.0.1:39890 Closing
|
||||
[Sun Aug 2 17:43:04 2026] 127.0.0.1:54022 Accepted
|
||||
[Sun Aug 2 17:43:04 2026] 127.0.0.1:54022 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:43:04 2026] 127.0.0.1:54022 Closing
|
||||
[Sun Aug 2 17:43:14 2026] 127.0.0.1:46878 Accepted
|
||||
[Sun Aug 2 17:43:14 2026] 127.0.0.1:46878 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:43:14 2026] 127.0.0.1:46878 Closing
|
||||
[Sun Aug 2 17:43:24 2026] 127.0.0.1:37572 Accepted
|
||||
[Sun Aug 2 17:43:24 2026] 127.0.0.1:37572 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:43:24 2026] 127.0.0.1:37572 Closing
|
||||
[Sun Aug 2 17:43:34 2026] 127.0.0.1:44360 Accepted
|
||||
[Sun Aug 2 17:43:34 2026] 127.0.0.1:44360 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:43:34 2026] 127.0.0.1:44360 Closing
|
||||
[Sun Aug 2 17:43:44 2026] 127.0.0.1:38786 Accepted
|
||||
[Sun Aug 2 17:43:44 2026] 127.0.0.1:38786 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:43:44 2026] 127.0.0.1:38786 Closing
|
||||
[Sun Aug 2 17:43:54 2026] 127.0.0.1:59926 Accepted
|
||||
[Sun Aug 2 17:43:54 2026] 127.0.0.1:59926 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:43:54 2026] 127.0.0.1:59926 Closing
|
||||
[Sun Aug 2 17:44:04 2026] 127.0.0.1:59842 Accepted
|
||||
[Sun Aug 2 17:44:04 2026] 127.0.0.1:59842 [200]: GET /api/caching.php?page=1
|
||||
[Sun Aug 2 17:44:04 2026] 127.0.0.1:59842 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59846 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59846 [200]: GET /index.php
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59846 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59854 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59854 [200]: GET /assets/index.css
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59854 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59866 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59880 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59866 [200]: GET /assets/nostr.bundle.js
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59894 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59880 [200]: GET /assets/nostr-lite.js
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59894 [200]: GET /assets/app.js
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59866 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59880 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59894 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59904 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59904 [200]: GET /api/stats.php
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59904 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59910 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59920 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59910 [200]: GET /api/chart.php?range=hour
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59910 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59922 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59920 [200]: GET /favicon.ico
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59920 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59932 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59922 [200]: GET /api/stats.php
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59922 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59932 [200]: GET /api/chart.php?range=hour
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59932 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59938 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59938 [200]: GET /api/chart.php?range=hour
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59938 Closing
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59954 Accepted
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59954 [404]: GET /api/profile.php?pubkey=8ff74724ed641b3c28e5a86d7c5cbc49c37638ace8c6c38935860e7a5eedde0e
|
||||
[Sun Aug 2 17:44:11 2026] 127.0.0.1:59954 Closing
|
||||
[Sun Aug 2 17:44:14 2026] 127.0.0.1:45466 Accepted
|
||||
[Sun Aug 2 17:44:14 2026] 127.0.0.1:45466 [200]: GET /api/cleanup_queries.php
|
||||
[Sun Aug 2 17:44:14 2026] 127.0.0.1:45466 Closing
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48586 Accepted
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48586 [200]: GET /index.php
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48586 Closing
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48594 Accepted
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48594 [200]: GET /assets/index.css
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48594 Closing
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48598 Accepted
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48606 Accepted
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48610 Accepted
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48598 [200]: GET /assets/nostr.bundle.js
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48598 Closing
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48606 [200]: GET /assets/nostr-lite.js
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48610 [200]: GET /assets/app.js
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48606 Closing
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48610 Closing
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48624 Accepted
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48624 [200]: GET /api/stats.php
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48624 Closing
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48632 Accepted
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48638 Accepted
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48632 [200]: GET /api/chart.php?range=hour
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48632 Closing
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48652 Accepted
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48638 [200]: GET /favicon.ico
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48638 Closing
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48662 Accepted
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48652 [200]: GET /api/stats.php
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48652 Closing
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48662 [200]: GET /api/chart.php?range=hour
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48662 Closing
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48674 Accepted
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48674 [200]: GET /api/chart.php?range=hour
|
||||
[Sun Aug 2 17:47:48 2026] 127.0.0.1:48674 Closing
|
||||
[Sun Aug 2 17:47:49 2026] 127.0.0.1:48686 Accepted
|
||||
[Sun Aug 2 17:47:49 2026] 127.0.0.1:48686 [404]: GET /api/profile.php?pubkey=8ff74724ed641b3c28e5a86d7c5cbc49c37638ace8c6c38935860e7a5eedde0e
|
||||
[Sun Aug 2 17:47:49 2026] 127.0.0.1:48686 Closing
|
||||
[Sun Aug 2 17:47:51 2026] 127.0.0.1:48698 Accepted
|
||||
[Sun Aug 2 17:47:51 2026] 127.0.0.1:48698 [200]: GET /api/cleanup_queries.php
|
||||
[Sun Aug 2 17:47:51 2026] 127.0.0.1:48698 Closing
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@
|
||||
// Using CRELAY_ prefix to avoid conflicts with nostr_core_lib VERSION macros
|
||||
#define CRELAY_VERSION_MAJOR 2
|
||||
#define CRELAY_VERSION_MINOR 1
|
||||
#define CRELAY_VERSION_PATCH 32
|
||||
#define CRELAY_VERSION "v2.1.32"
|
||||
#define CRELAY_VERSION_PATCH 35
|
||||
#define CRELAY_VERSION "v2.1.35"
|
||||
|
||||
// Relay metadata (authoritative source for NIP-11 information)
|
||||
#define RELAY_NAME "C-Relay-PG"
|
||||
|
||||
+2
-1
@@ -752,7 +752,8 @@ static const char* const EMBEDDED_PG_SCHEMA_SQL =
|
||||
" follows_filter TEXT NOT NULL DEFAULT 'all'\n"
|
||||
" CHECK (follows_filter IN ('all', 'follows', 'non_follows')),\n"
|
||||
" kinds INTEGER[] NOT NULL DEFAULT '{}',\n"
|
||||
" max_age_days INTEGER NOT NULL DEFAULT 0,\n"
|
||||
" from_date TEXT NOT NULL DEFAULT '',\n"
|
||||
" to_date TEXT NOT NULL DEFAULT '',\n"
|
||||
" max_events INTEGER NOT NULL DEFAULT 0,\n"
|
||||
" last_preview_count INTEGER NOT NULL DEFAULT 0,\n"
|
||||
" last_preview_size_bytes BIGINT NOT NULL DEFAULT 0,\n"
|
||||
|
||||
Reference in New Issue
Block a user