Add Social Scheduler — global social media post scheduling
- New /social page with left/right layout (form + post list) - Social topbar link - Tables: social_posts, social_targets (project-agnostic posts, per-target project refs) - CRUD: create, edit, duplicate, delete, retry - Image upload (JPEG/PNG/GIF/WebP, 10MB max) stored in data/social-uploads/ - Per-platform image toggle (Discord multipart, Mastodon /api/v2/media, LinkedIn Assets API) - bin/dispatch-social.php cron dispatcher (every minute via /etc/cron.d) - Settings: eligible projects section to enable bot projects as social account sources - Platforms: Discord (webhook), Mastodon, LinkedIn personal profile Cron setup: * * * * * www-data /usr/bin/php /opt/hackmancms/bin/dispatch-social.php >> /var/log/hackman_social.log 2>&1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
45b9e15152
commit
ac5c262bfb
9 changed files with 1081 additions and 0 deletions
|
|
@ -33,6 +33,11 @@ $_page_title = isset($page_title) ? htmlspecialchars($page_title) . ' — ' : '
|
|||
<i class="bi bi-journal-text me-1"></i>Audit
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <?= $_nav_active === 'social' ? 'active' : '' ?>" href="/social">
|
||||
<i class="bi bi-calendar-week me-1"></i>Social
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<?php $user = Auth::currentUser(); ?>
|
||||
<ul class="navbar-nav">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue