Snapshot: Krystie uncommitted edits on sami-ahmed.net as of 2026-05-20 14:56 PT

These changes were applied DIRECTLY to the production cPanel server via
Fileman/save_file_content API calls between ~10:30 PT and 14:44 PT today.
None of them were committed or pushed at the time, violating the
Software → Repo rule (CLAUDE.md, added 2026-05-18).

Captured by Claude (VSCode-side) at Sami request so the changes can be
reviewed/cherry-picked instead of being silently lost.

Notable concerns:
- class-beep.php shrank from 3387 → 1395 bytes (likely truncation, not edit)
- beep.css shrank from 35431 → 22948 bytes (-12.5 KB; ~half the file gone)
- class-replies.php shrank from 8793 → 6406 bytes
- 3 new files (class-magic-links.php, class-follows.php, create_poll_tables.php)
  were created server-only with no repo presence

Source: live cPanel snapshot at /tmp/beep-snapshot-2026-05-20/
This commit is contained in:
Krystie
2026-05-20 15:12:41 -07:00
parent dfd621e350
commit b882092f5d
11 changed files with 1504 additions and 1495 deletions
+18 -1
View File
@@ -86,6 +86,11 @@ class Beep_Shortcode {
$posts = ($sort === 'top') ? self::get_top_beeps($limit) : self::get_latest_beeps($limit);
$has_posts = !empty($posts);
// Show magic login form if not logged in
if (!is_user_logged_in()) {
return Beep_Magic_Links::render_login_form() . beep_render_public_feed($posts, $atts);
}
ob_start();
?>
<div class="beep-feed" data-beep-feed>
@@ -135,7 +140,19 @@ class Beep_Shortcode {
</div>
</div>
<?php
return ob_get_clean() . beep_render_thread_modal() . beep_render_gif_modal();
// Output BeepConfig and beep.js inline since wp_enqueue_scripts isn't working
$beep_config = sprintf(
'<script>var BeepConfig=%s;</script>',
json_encode([
'restUrl' => esc_url_raw(rest_url('beep/v1/')),
'nonce' => wp_create_nonce('wp_rest'),
'charLimit' => BEEP_CHAR_LIMIT,
'loginUrl' => esc_url_raw(wp_login_url(is_singular() ? get_permalink() : home_url('/'))),
'isLoggedIn' => is_user_logged_in(),
])
);
$beep_script = '<script src="' . esc_url(BEEP_URL . 'assets/beep.js?ver=' . BEEP_VERSION) . '" defer></script>';
return ob_get_clean() . $beep_config . $beep_script . beep_render_thread_modal() . beep_render_gif_modal();
}
/**