Die Redaktion versendet keine Beiträge mehr automatisch an Facebook.
Bei veröffentlichten Redaktionsbeiträgen mit aktivem Facebook-Haken wird der Beitrag unmittelbar über die Facebook Pages API veröffentlicht.
WhatsApp
Landwelle Kanal
Die offizielle WhatsApp Cloud API unterstützt derzeit keine automatische Veröffentlichung in WhatsApp-Kanälen. Die Kanal-URL wird zentral gespeichert; automatische Posts werden erst aktiviert, sobald Meta dafür eine offizielle Schreib-API bereitstellt.
Sicherheitshinweis
API-Schlüssel werden serverseitig in der geschützten Laufzeitkonfiguration gespeichert und in dieser Oberfläche nie wieder ausgegeben. Dateirechte und Zugriff auf /var/lib/landwelle müssen auf den Portal-Dienst beschränkt bleiben.
diff --git a/cmd/portal/web/assets/admin-editorial-v39.js b/cmd/portal/web/assets/admin-editorial-v39.js
deleted file mode 100644
index bef3006..0000000
--- a/cmd/portal/web/assets/admin-editorial-v39.js
+++ /dev/null
@@ -1,122 +0,0 @@
-(() => {
- const makeSlug = value => value.toLowerCase().trim()
- .replace(/ä/g, 'ae').replace(/ö/g, 'oe').replace(/ü/g, 'ue').replace(/ß/g, 'ss')
- .normalize('NFD').replace(/[\u0300-\u036f]/g, '')
- .replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '');
-
- const form = document.querySelector('[data-editorial-form]');
- if (form) {
- const title = form.querySelector('[data-editorial-title]');
- const slug = form.querySelector('[data-editorial-slug]');
- const teaser = form.querySelector('[data-editorial-teaser]');
- const category = form.querySelector('[data-editorial-category]');
- const status = form.querySelector('[data-editorial-status]');
- const facebookToggle = form.querySelector('[data-facebook-toggle]');
- const aiUsage = form.querySelector('[name="ai_usage"]');
- const aiDisclosure = form.querySelector('[name="ai_disclosure"]');
- const preview = document.querySelector('[data-facebook-preview]');
-
- const updatePreview = () => {
- const generatedSlug = makeSlug(title?.value || '');
- if (slug) slug.value = generatedSlug;
- if (!preview) return;
-
- preview.hidden = !facebookToggle?.checked;
- if (preview.hidden) return;
-
- const titleValue = (title?.value || '').trim() || 'Titel des Beitrags';
- const teaserValue = (teaser?.value || '').trim() || 'Der kurze Einstieg deines Beitrags erscheint hier.';
- const selectedCategory = category?.selectedOptions?.[0];
- const isHomepageCategory = selectedCategory?.dataset.homepage === '1';
- const isPublished = status?.value === 'published';
- const base = (preview.dataset.publicBase || 'https://landwelle.de').replace(/\/+$/, '');
- const categorySlug = category?.value || 'kategorie';
- const publicPath = `/landwelle-vor-ort/${categorySlug}/${generatedSlug || 'dein-beitrag'}`;
-
- const message = preview.querySelector('[data-facebook-message]');
- const previewTitle = preview.querySelector('[data-facebook-title]');
- const previewTeaser = preview.querySelector('[data-facebook-teaser]');
- const previewLink = preview.querySelector('[data-facebook-link]');
- const note = preview.querySelector('[data-facebook-note]');
- const aiValue = aiUsage?.value || 'none';
- const aiDefaults = {
- assisted: 'Dieser Inhalt wurde mit Unterstützung künstlicher Intelligenz erstellt.',
- generated: 'Dieser Inhalt wurde mithilfe künstlicher Intelligenz erstellt.',
- manipulated: 'Dieser Inhalt wurde mithilfe künstlicher Intelligenz wesentlich bearbeitet.'
- };
- const aiText = (aiDisclosure?.value || '').trim() || aiDefaults[aiValue] || '';
- if (message) message.textContent = `${titleValue}\n\n${teaserValue}${aiText ? `\n\nKI-Transparenz: ${aiText}` : ''}`;
- if (previewTitle) previewTitle.textContent = titleValue;
- if (previewTeaser) previewTeaser.textContent = teaserValue;
- if (previewLink) previewLink.textContent = isHomepageCategory ? `${base}${publicPath}` : 'Noch keine öffentliche Beitragsseite';
-
- if (note) {
- note.classList.toggle('is-warning', !isHomepageCategory);
- if (!isHomepageCategory) {
- note.textContent = 'Diese Kategorie ist nicht für „Landwelle vor Ort“ freigeschaltet. Facebook kann den Beitrag deshalb nicht mit einer öffentlichen Landwelle-Seite verknüpfen.';
- } else if (!isPublished) {
- note.textContent = 'Der Beitrag wird erst an Facebook gesendet, wenn du den Status auf „Veröffentlicht“ stellst.';
- } else {
- note.textContent = 'Der Beitrag wird zum gewählten Veröffentlichungsdatum an die eingerichtete Facebook-Seite gesendet.';
- }
- }
-
- const selectedMedia = form.querySelector('input[name="media_asset_id"]:checked');
- const mediaURL = selectedMedia?.dataset.mediaUrl || '';
- const image = preview.querySelector('[data-facebook-image]');
- const emptyImage = preview.querySelector('[data-facebook-image-empty]');
- if (image) {
- image.hidden = !mediaURL;
- if (mediaURL) image.src = mediaURL;
- }
- if (emptyImage) emptyImage.hidden = Boolean(mediaURL);
- };
-
- [title, teaser, category, status, facebookToggle, aiUsage, aiDisclosure].forEach(element => {
- element?.addEventListener('input', updatePreview);
- element?.addEventListener('change', updatePreview);
- });
- form.querySelectorAll('input[name="media_asset_id"]').forEach(input => input.addEventListener('change', updatePreview));
- updatePreview();
- }
-
- const categoryModal = document.querySelector('[data-category-modal]');
- const openCategory = document.querySelector('[data-open-category-modal]');
- const closeCategoryButtons = document.querySelectorAll('[data-close-category-modal]');
- openCategory?.addEventListener('click', () => {
- if (typeof categoryModal?.showModal === 'function') categoryModal.showModal();
- else categoryModal?.setAttribute('open', '');
- });
- closeCategoryButtons.forEach(button => button.addEventListener('click', () => categoryModal?.close()));
- categoryModal?.addEventListener('click', event => {
- if (event.target === categoryModal) categoryModal.close();
- });
-
- const list = document.querySelector('[data-editorial-content-list]');
- if (list) {
- const categoryFilter = document.querySelector('[data-editorial-filter-category]');
- const statusFilter = document.querySelector('[data-editorial-filter-status]');
- const searchFilter = document.querySelector('[data-editorial-filter-search]');
- const empty = document.querySelector('[data-editorial-filter-empty]');
- const rows = [...list.querySelectorAll('[data-editorial-row]')];
- const applyFilters = () => {
- const categoryValue = categoryFilter?.value || '';
- const statusValue = statusFilter?.value || '';
- const searchValue = (searchFilter?.value || '').trim().toLocaleLowerCase('de');
- let visible = 0;
- rows.forEach(row => {
- const matchesCategory = !categoryValue || row.dataset.category === categoryValue;
- const matchesStatus = !statusValue || row.dataset.status === statusValue;
- const haystack = (row.dataset.search || '').toLocaleLowerCase('de');
- const matchesSearch = !searchValue || haystack.includes(searchValue);
- row.hidden = !(matchesCategory && matchesStatus && matchesSearch);
- if (!row.hidden) visible += 1;
- });
- if (empty) empty.hidden = visible !== 0 || rows.length === 0;
- };
- [categoryFilter, statusFilter, searchFilter].forEach(element => {
- element?.addEventListener('input', applyFilters);
- element?.addEventListener('change', applyFilters);
- });
- }
-})();
diff --git a/cmd/portal/web/assets/admin-editorial-v40.js b/cmd/portal/web/assets/admin-editorial-v40.js
new file mode 100644
index 0000000..b331477
--- /dev/null
+++ b/cmd/portal/web/assets/admin-editorial-v40.js
@@ -0,0 +1,57 @@
+(() => {
+ const makeSlug = value => value.toLowerCase().trim()
+ .replace(/ä/g, 'ae').replace(/ö/g, 'oe').replace(/ü/g, 'ue').replace(/ß/g, 'ss')
+ .normalize('NFD').replace(/[\u0300-\u036f]/g, '')
+ .replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '');
+
+ const form = document.querySelector('[data-editorial-form]');
+ if (form) {
+ const title = form.querySelector('[data-editorial-title]');
+ const slug = form.querySelector('[data-editorial-slug]');
+ const updateSlug = () => {
+ if (slug) slug.value = makeSlug(title?.value || '');
+ };
+ title?.addEventListener('input', updateSlug);
+ updateSlug();
+ }
+
+ const categoryModal = document.querySelector('[data-category-modal]');
+ const openCategory = document.querySelector('[data-open-category-modal]');
+ const closeCategoryButtons = document.querySelectorAll('[data-close-category-modal]');
+ openCategory?.addEventListener('click', () => {
+ if (typeof categoryModal?.showModal === 'function') categoryModal.showModal();
+ else categoryModal?.setAttribute('open', '');
+ });
+ closeCategoryButtons.forEach(button => button.addEventListener('click', () => categoryModal?.close()));
+ categoryModal?.addEventListener('click', event => {
+ if (event.target === categoryModal) categoryModal.close();
+ });
+
+ const list = document.querySelector('[data-editorial-content-list]');
+ if (list) {
+ const categoryFilter = document.querySelector('[data-editorial-filter-category]');
+ const statusFilter = document.querySelector('[data-editorial-filter-status]');
+ const searchFilter = document.querySelector('[data-editorial-filter-search]');
+ const empty = document.querySelector('[data-editorial-filter-empty]');
+ const rows = [...list.querySelectorAll('[data-editorial-row]')];
+ const applyFilters = () => {
+ const categoryValue = categoryFilter?.value || '';
+ const statusValue = statusFilter?.value || '';
+ const searchValue = (searchFilter?.value || '').trim().toLocaleLowerCase('de');
+ let visible = 0;
+ rows.forEach(row => {
+ const matchesCategory = !categoryValue || row.dataset.category === categoryValue;
+ const matchesStatus = !statusValue || row.dataset.status === statusValue;
+ const haystack = (row.dataset.search || '').toLocaleLowerCase('de');
+ const matchesSearch = !searchValue || haystack.includes(searchValue);
+ row.hidden = !(matchesCategory && matchesStatus && matchesSearch);
+ if (!row.hidden) visible += 1;
+ });
+ if (empty) empty.hidden = visible !== 0 || rows.length === 0;
+ };
+ [categoryFilter, statusFilter, searchFilter].forEach(element => {
+ element?.addEventListener('input', applyFilters);
+ element?.addEventListener('change', applyFilters);
+ });
+ }
+})();
diff --git a/cmd/portal/web/assets/admin-editorial-v43.css b/cmd/portal/web/assets/admin-editorial-v43.css
deleted file mode 100644
index bab90c3..0000000
--- a/cmd/portal/web/assets/admin-editorial-v43.css
+++ /dev/null
@@ -1,22 +0,0 @@
-.editorial-admin-page{display:grid;gap:18px}.editorial-admin-page [hidden]{display:none!important}.editorial-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.editorial-tabs a{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:11px;align-items:center;padding:15px 17px;border:1px solid #dce5da;border-radius:15px;background:#fff;color:#263128;text-decoration:none;box-shadow:0 5px 18px rgba(28,42,26,.05)}.editorial-tabs a>span{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eff4ec;color:#5d8f20;font-size:21px;font-weight:900}.editorial-tabs strong{font-size:15px}.editorial-tabs small{color:#758078;font-size:11px}.editorial-tabs a.is-active{border-color:#8fbd55;background:linear-gradient(135deg,#fbfef8,#eef7e6);box-shadow:0 10px 24px rgba(93,143,32,.12)}.editorial-tabs a.is-active>span{background:#6faa24;color:#fff}.editorial-panel-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.editorial-panel-heading h2{margin:4px 0 5px;font-size:25px}.editorial-panel-heading p{max-width:760px;margin:0;color:#68736b}.editorial-contents-panel,.editorial-category-panel{padding:22px}.editorial-list-toolbar{display:grid;grid-template-columns:220px 200px minmax(240px,1fr);gap:12px;padding:14px;border:1px solid #e0e7de;border-radius:14px;background:#f7faf5}.editorial-list-toolbar label{display:grid;gap:5px}.editorial-list-toolbar label>span{color:#647066;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.editorial-list-toolbar select,.editorial-list-toolbar input{width:100%;box-sizing:border-box;padding:10px 11px;border:1px solid #cad6cb;border-radius:9px;background:#fff;color:#263027}.editorial-content-table{margin-top:16px;border:1px solid #e1e7df;border-radius:14px;overflow:hidden}.editorial-content-head,.editorial-content-table>article{display:grid;grid-template-columns:minmax(300px,1.65fr) minmax(160px,.72fr) minmax(210px,.9fr) minmax(150px,.6fr);gap:16px;align-items:center}.editorial-content-head{padding:11px 15px;background:#eef3eb;color:#657066;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.editorial-content-table>article{padding:14px 15px;border-top:1px solid #e8ede7;background:#fff}.editorial-content-table>article:hover{background:#fbfdf9}.editorial-content-main{display:grid;grid-template-columns:72px minmax(0,1fr);gap:13px;align-items:center;min-width:0}.admin-editorial-thumb,.admin-editorial-placeholder{width:72px;height:64px;border-radius:10px}.admin-editorial-thumb{object-fit:cover}.admin-editorial-placeholder{display:grid;place-items:center;background:linear-gradient(145deg,#223023,#101810);color:#9bda4e;font-weight:950}.editorial-content-main strong{display:block;color:#1e271f;font-size:15px;line-height:1.25}.editorial-content-main p{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:4px 0;color:#68736b;font-size:11px;line-height:1.4}.editorial-content-main small{color:#879088;font-size:10px}.editorial-content-classification{display:flex;align-items:flex-start;flex-direction:column;gap:7px}.editorial-category-chip,.editorial-status-chip{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900}.editorial-category-chip{background:#edf4e8;color:#537b22}.editorial-status-chip{background:#eff1ef;color:#657066}.editorial-status-chip.is-published{background:#e4f5d6;color:#4f7f17}.editorial-status-chip.is-review{background:#fff1cd;color:#866311}.editorial-status-chip.is-archived{background:#e8e9e8;color:#676b68}.editorial-content-classification small{color:#7b857c;font-size:10px}.editorial-distribution-status{display:grid;gap:8px}.facebook-state{display:flex;gap:8px;align-items:flex-start;min-width:0}.facebook-state>b{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:#e9edf4;color:#4267a9;font-family:Arial,sans-serif;font-size:16px}.facebook-state>span{display:grid;min-width:0}.facebook-state strong{font-size:10px;color:#536058}.facebook-state small{overflow:hidden;text-overflow:ellipsis;color:#8b4d4d;font-size:9px;line-height:1.35}.facebook-state.is-published>b{background:#4267b2;color:#fff}.facebook-state.is-published strong{color:#37653a}.facebook-state.is-failed>b{background:#f9dddd;color:#a13d3d}.facebook-state.is-failed strong{color:#9a3535}.facebook-state.is-off{opacity:.65}.push-state{font-size:10px;font-weight:800;color:#547c23}.push-state.is-muted{color:#929a93}.editorial-row-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px}.editorial-row-actions a,.editorial-row-actions button{display:block;width:100%;box-sizing:border-box;padding:7px 9px;border:1px solid #d9e1d8;border-radius:8px;background:#fff;color:#566159;text-align:center;text-decoration:none;font:inherit;font-size:10px;font-weight:850;cursor:pointer}.editorial-row-actions a.is-primary{border-color:#7eaf42;background:#eef7e6;color:#4e761d}.editorial-row-actions button.is-danger{color:#a14646}.editorial-filter-empty{display:grid;place-items:center;gap:4px;padding:35px;color:#68736b}.editorial-filter-empty strong{color:#2b362d}.editorial-create-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.7fr);gap:18px;align-items:start}.editorial-editor-card{padding:22px}.editorial-editor-card .admin-card-heading p{margin:4px 0 0;color:#6d776f}.editorial-editor-card .admin-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px}.editorial-editor-card .admin-form-actions>a{color:#667168}.facebook-preview-card{position:sticky;top:88px;padding:0;overflow:hidden}.facebook-preview-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:17px 18px;border-bottom:1px solid #e5e9e4;background:#f8faf7}.facebook-preview-heading>div{display:flex;gap:10px;align-items:center}.facebook-preview-heading>div>div{display:grid}.facebook-preview-heading small{color:#788078;font-size:10px}.facebook-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#4267b2;color:#fff;font-family:Arial,sans-serif;font-size:22px;font-weight:900}.facebook-connection{padding:6px 8px;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase}.facebook-connection.is-ready{background:#e3f3d7;color:#4f7b1c}.facebook-connection.is-missing{background:#fde5d7;color:#a05b2d}.facebook-setup-warning{display:grid;gap:4px;margin:14px 14px 0;padding:12px;border:1px solid #f1cfae;border-radius:11px;background:#fff8ec;color:#79522e}.facebook-setup-warning strong{font-size:11px}.facebook-setup-warning span,.facebook-setup-warning a{font-size:10px}.facebook-setup-warning a{color:#80531f;font-weight:850}.facebook-post-preview{margin:14px;border:1px solid #dfe3e8;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 5px 17px rgba(26,39,60,.08)}.facebook-post-preview>header{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:12px}.facebook-post-preview>header>div{display:grid}.facebook-post-preview>header small{color:#7a8189;font-size:9px}.facebook-page-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#162017;color:#9edb50;font-weight:950}.facebook-post-preview>p{margin:0;padding:2px 12px 13px;color:#222;font-size:12px;line-height:1.45;white-space:pre-line}.facebook-link-card{border-top:1px solid #e2e5e8;background:#f1f3f5}.facebook-preview-image{display:grid;place-items:center;height:150px;overflow:hidden;background:linear-gradient(145deg,#1a251b,#4b6631);color:#bce67c;font-size:17px;font-weight:900}.facebook-preview-image img{width:100%;height:100%;object-fit:cover}.facebook-link-card>div:last-child{padding:10px 12px}.facebook-link-card small{color:#727b84;font-size:9px}.facebook-link-card strong{display:block;margin:2px 0;color:#20252b;font-size:13px}.facebook-link-card p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;margin:0;color:#69717a;font-size:10px;line-height:1.35}.facebook-link-card span{display:block;overflow:hidden;margin-top:5px;color:#777f87;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.facebook-preview-note{margin:0 14px 14px;padding:10px 11px;border-radius:9px;background:#edf5e8;color:#4f6f31;font-size:10px;line-height:1.45}.facebook-preview-note.is-warning{background:#fff2dc;color:#80591f}.facebook-current-status{display:grid;gap:3px;margin:0 14px 14px;padding:11px;border-radius:10px;background:#f1f4f0}.facebook-current-status strong{font-size:10px}.facebook-current-status small{overflow-wrap:anywhere;color:#7b4b4b;font-size:9px}.facebook-current-status.is-published{background:#e8f5df;color:#47751d}.facebook-current-status.is-failed{background:#fde8e8;color:#973b3b}.editorial-category-list{display:grid;gap:10px}.editorial-category-list article{display:grid;grid-template-columns:44px minmax(250px,1fr) auto auto;gap:14px;align-items:center;padding:14px;border:1px solid #e1e7df;border-radius:13px;background:#fff}.editorial-category-list article.is-inactive{opacity:.65;background:#f4f5f3}.editorial-category-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#edf5e7;color:#5d8c24;font-size:18px;font-weight:950;text-transform:uppercase}.editorial-category-list strong,.editorial-category-list code{display:inline-block;margin-right:8px}.editorial-category-list code{padding:3px 6px;border-radius:6px;background:#edf1ec;color:#617063}.editorial-category-list p{margin:4px 0 0;color:#6b756d;font-size:11px}.editorial-type-badges{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.editorial-type-badges span,.editorial-type-badges small{padding:5px 8px;border-radius:999px;background:#e9f4db;color:#527b18;font-size:9px;font-weight:850}.editorial-type-badges small{background:#eef1ed;color:#626d64}.editorial-category-dialog{width:min(680px,calc(100% - 28px));padding:0;border:0;border-radius:18px;background:#fff;box-shadow:0 28px 90px rgba(15,24,16,.35)}.editorial-category-dialog::backdrop{background:rgba(10,15,11,.62);backdrop-filter:blur(3px)}.editorial-category-form>header{display:flex;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #e4e9e3;background:#f7faf5}.editorial-category-form>header h2{margin:4px 0}.editorial-category-form>header p{max-width:520px;margin:0;color:#6a756c}.editorial-category-form>header>button{width:38px;height:38px;border:0;border-radius:10px;background:#e9eee7;color:#465148;font-size:24px;cursor:pointer}.editorial-category-form>.admin-form-grid{padding:22px 24px}.editorial-category-form textarea{resize:vertical}.editorial-switch{display:flex!important;grid-template-columns:auto 1fr;gap:10px;align-items:flex-start;padding:12px;border:1px solid #e0e6df;border-radius:10px}.editorial-switch input{width:auto!important;margin-top:3px}.editorial-switch>span{display:grid;gap:3px}.editorial-switch small{color:#768078;font-weight:500}.editorial-category-form>footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid #e4e9e3;background:#fafcf9}
-@media(max-width:1180px){.editorial-content-head,.editorial-content-table>article{grid-template-columns:minmax(270px,1.5fr) minmax(145px,.7fr) minmax(180px,.85fr) 130px}.editorial-create-layout{grid-template-columns:1fr}.facebook-preview-card{position:static;max-width:620px}.editorial-category-list article{grid-template-columns:44px minmax(220px,1fr) auto}.editorial-category-list article>form{grid-column:2/-1;justify-self:end}}
-@media(max-width:900px){.editorial-tabs{grid-template-columns:1fr}.editorial-list-toolbar{grid-template-columns:1fr 1fr}.editorial-search{grid-column:1/-1}.editorial-content-head{display:none}.editorial-content-table{display:grid;gap:12px;border:0;overflow:visible}.editorial-content-table>article{grid-template-columns:1fr 1fr;padding:15px;border:1px solid #e1e7df;border-radius:13px}.editorial-content-main{grid-column:1/-1}.editorial-row-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.editorial-category-list article{grid-template-columns:44px minmax(0,1fr)}.editorial-category-list .editorial-type-badges,.editorial-category-list article>form{grid-column:2}}
-@media(max-width:620px){.editorial-panel-heading{align-items:stretch;flex-direction:column}.editorial-panel-heading .admin-primary-button{width:100%;box-sizing:border-box;text-align:center}.editorial-list-toolbar{grid-template-columns:1fr}.editorial-search{grid-column:auto}.editorial-content-table>article{grid-template-columns:1fr}.editorial-content-classification,.editorial-distribution-status,.editorial-row-actions{grid-column:auto}.editorial-row-actions{grid-template-columns:1fr 1fr}.editorial-content-main{grid-template-columns:58px minmax(0,1fr)}.admin-editorial-thumb,.admin-editorial-placeholder{width:58px;height:58px}.editorial-category-list article{grid-template-columns:1fr}.editorial-category-list .editorial-category-icon,.editorial-category-list .editorial-type-badges,.editorial-category-list article>form{grid-column:auto}.editorial-category-list article>form,.editorial-category-list article>form button{width:100%}.editorial-category-form>.admin-form-grid{grid-template-columns:1fr}.editorial-category-form .is-wide{grid-column:auto}.facebook-preview-card{min-width:0}.editorial-category-dialog{width:calc(100% - 18px)}}
-/* v1.5.24 – KI-Transparenz */
-.editorial-ai-chip{display:inline-flex;align-items:center;gap:5px;width:max-content;padding:5px 8px;border-radius:999px;background:#ede7ff;color:#5f3a8f;font-size:9px;font-weight:900;text-transform:uppercase}.editorial-ai-chip.is-media{background:#e2eef8;color:#315f83}.editorial-ai-panel{display:grid;gap:14px;padding:18px;border:1px solid #cbd8c5;border-radius:15px;background:linear-gradient(145deg,#f8fbf5,#f0f5ec)}.editorial-ai-panel legend{padding:0 8px;color:#29482b;font-weight:900}.editorial-ai-panel>p{margin:0;color:#667365;line-height:1.55}.editorial-ai-panel>a{width:max-content;color:#527d20;font-weight:800;text-decoration:none}.editorial-ai-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.editorial-ai-grid label{display:grid;gap:7px}.editorial-ai-grid .is-wide{grid-column:1/-1}.editorial-ai-grid label>span{font-weight:780}.editorial-ai-grid small{color:#758174;font-weight:500;line-height:1.45}.editorial-ai-grid input,.editorial-ai-grid select,.editorial-ai-grid textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #cbd7c7;border-radius:10px;background:#fff;font:inherit}.editorial-ai-review{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;padding:13px;border:1px solid #d5e0d0;border-radius:11px;background:#fff}.editorial-ai-review input{width:auto!important;margin-top:3px}.editorial-ai-review>span{display:grid;gap:3px}.editorial-ai-review strong{font-size:.92rem}@media(max-width:700px){.editorial-ai-grid{grid-template-columns:1fr}.editorial-ai-grid .is-wide{grid-column:auto}}
-
-/* Editorial editor: content left, publication and AI disclosure right. */
-.editorial-create-layout{grid-template-columns:minmax(0,1fr)}
-.editorial-form-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:22px;align-items:start}
-.editorial-form-sidebar{display:grid;gap:16px;min-width:0}
-.editorial-form-sidebar .editorial-ai-grid{grid-template-columns:minmax(0,1fr)}
-.editorial-form-sidebar .editorial-ai-panel{min-width:0}
-.editorial-form-sidebar .editorial-ai-panel>a{width:auto;overflow-wrap:anywhere}
-.editorial-form-sidebar .admin-distribution{display:grid;gap:12px}
-.editorial-form-sidebar .admin-distribution>label:not(.admin-check){display:grid;gap:6px}
-.editorial-form-sidebar input[type=date]{width:100%;box-sizing:border-box;padding:12px;border:1px solid #cbd7c7;border-radius:10px;font:inherit}
-.editorial-form-sidebar .admin-form-actions{flex-wrap:wrap}
-.editorial-status-chip.is-scheduled{background:#e8eefb;color:#345a92}
-@media(max-width:1000px){.editorial-form-columns{grid-template-columns:minmax(0,1fr)}}
-
-.editorial-form-sidebar .facebook-preview-card{position:static;max-width:none;min-width:0}
diff --git a/cmd/portal/web/assets/admin-editorial-v44.css b/cmd/portal/web/assets/admin-editorial-v44.css
new file mode 100644
index 0000000..083b0db
--- /dev/null
+++ b/cmd/portal/web/assets/admin-editorial-v44.css
@@ -0,0 +1,20 @@
+.editorial-admin-page{display:grid;gap:18px}.editorial-admin-page [hidden]{display:none!important}.editorial-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.editorial-tabs a{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:11px;align-items:center;padding:15px 17px;border:1px solid #dce5da;border-radius:15px;background:#fff;color:#263128;text-decoration:none;box-shadow:0 5px 18px rgba(28,42,26,.05)}.editorial-tabs a>span{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eff4ec;color:#5d8f20;font-size:21px;font-weight:900}.editorial-tabs strong{font-size:15px}.editorial-tabs small{color:#758078;font-size:11px}.editorial-tabs a.is-active{border-color:#8fbd55;background:linear-gradient(135deg,#fbfef8,#eef7e6);box-shadow:0 10px 24px rgba(93,143,32,.12)}.editorial-tabs a.is-active>span{background:#6faa24;color:#fff}.editorial-panel-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.editorial-panel-heading h2{margin:4px 0 5px;font-size:25px}.editorial-panel-heading p{max-width:760px;margin:0;color:#68736b}.editorial-contents-panel,.editorial-category-panel{padding:22px}.editorial-list-toolbar{display:grid;grid-template-columns:220px 200px minmax(240px,1fr);gap:12px;padding:14px;border:1px solid #e0e7de;border-radius:14px;background:#f7faf5}.editorial-list-toolbar label{display:grid;gap:5px}.editorial-list-toolbar label>span{color:#647066;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.editorial-list-toolbar select,.editorial-list-toolbar input{width:100%;box-sizing:border-box;padding:10px 11px;border:1px solid #cad6cb;border-radius:9px;background:#fff;color:#263027}.editorial-content-table{margin-top:16px;border:1px solid #e1e7df;border-radius:14px;overflow:hidden}.editorial-content-head,.editorial-content-table>article{display:grid;grid-template-columns:minmax(300px,2fr) minmax(180px,1fr) minmax(150px,.6fr);gap:16px;align-items:center}.editorial-content-head{padding:11px 15px;background:#eef3eb;color:#657066;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.editorial-content-table>article{padding:14px 15px;border-top:1px solid #e8ede7;background:#fff}.editorial-content-table>article:hover{background:#fbfdf9}.editorial-content-main{display:grid;grid-template-columns:72px minmax(0,1fr);gap:13px;align-items:center;min-width:0}.admin-editorial-thumb,.admin-editorial-placeholder{width:72px;height:64px;border-radius:10px}.admin-editorial-thumb{object-fit:cover}.admin-editorial-placeholder{display:grid;place-items:center;background:linear-gradient(145deg,#223023,#101810);color:#9bda4e;font-weight:950}.editorial-content-main strong{display:block;color:#1e271f;font-size:15px;line-height:1.25}.editorial-content-main p{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:4px 0;color:#68736b;font-size:11px;line-height:1.4}.editorial-content-main small{color:#879088;font-size:10px}.editorial-content-classification{display:flex;align-items:flex-start;flex-direction:column;gap:7px}.editorial-category-chip,.editorial-status-chip{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900}.editorial-category-chip{background:#edf4e8;color:#537b22}.editorial-status-chip{background:#eff1ef;color:#657066}.editorial-status-chip.is-published{background:#e4f5d6;color:#4f7f17}.editorial-status-chip.is-review{background:#fff1cd;color:#866311}.editorial-status-chip.is-archived{background:#e8e9e8;color:#676b68}.editorial-content-classification small{color:#7b857c;font-size:10px}.push-state{font-size:10px;font-weight:800;color:#547c23}.push-state.is-muted{color:#929a93}.editorial-row-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px}.editorial-row-actions a,.editorial-row-actions button{display:block;width:100%;box-sizing:border-box;padding:7px 9px;border:1px solid #d9e1d8;border-radius:8px;background:#fff;color:#566159;text-align:center;text-decoration:none;font:inherit;font-size:10px;font-weight:850;cursor:pointer}.editorial-row-actions a.is-primary{border-color:#7eaf42;background:#eef7e6;color:#4e761d}.editorial-row-actions button.is-danger{color:#a14646}.editorial-filter-empty{display:grid;place-items:center;gap:4px;padding:35px;color:#68736b}.editorial-filter-empty strong{color:#2b362d}.editorial-create-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.7fr);gap:18px;align-items:start}.editorial-editor-card{padding:22px}.editorial-editor-card .admin-card-heading p{margin:4px 0 0;color:#6d776f}.editorial-editor-card .admin-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px}.editorial-editor-card .admin-form-actions>a{color:#667168}.editorial-category-list{display:grid;gap:10px}.editorial-category-list article{display:grid;grid-template-columns:44px minmax(250px,1fr) auto auto;gap:14px;align-items:center;padding:14px;border:1px solid #e1e7df;border-radius:13px;background:#fff}.editorial-category-list article.is-inactive{opacity:.65;background:#f4f5f3}.editorial-category-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#edf5e7;color:#5d8c24;font-size:18px;font-weight:950;text-transform:uppercase}.editorial-category-list strong,.editorial-category-list code{display:inline-block;margin-right:8px}.editorial-category-list code{padding:3px 6px;border-radius:6px;background:#edf1ec;color:#617063}.editorial-category-list p{margin:4px 0 0;color:#6b756d;font-size:11px}.editorial-type-badges{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.editorial-type-badges span,.editorial-type-badges small{padding:5px 8px;border-radius:999px;background:#e9f4db;color:#527b18;font-size:9px;font-weight:850}.editorial-type-badges small{background:#eef1ed;color:#626d64}.editorial-category-dialog{width:min(680px,calc(100% - 28px));padding:0;border:0;border-radius:18px;background:#fff;box-shadow:0 28px 90px rgba(15,24,16,.35)}.editorial-category-dialog::backdrop{background:rgba(10,15,11,.62);backdrop-filter:blur(3px)}.editorial-category-form>header{display:flex;justify-content:space-between;gap:18px;padding:22px 24px;border-bottom:1px solid #e4e9e3;background:#f7faf5}.editorial-category-form>header h2{margin:4px 0}.editorial-category-form>header p{max-width:520px;margin:0;color:#6a756c}.editorial-category-form>header>button{width:38px;height:38px;border:0;border-radius:10px;background:#e9eee7;color:#465148;font-size:24px;cursor:pointer}.editorial-category-form>.admin-form-grid{padding:22px 24px}.editorial-category-form textarea{resize:vertical}.editorial-switch{display:flex!important;grid-template-columns:auto 1fr;gap:10px;align-items:flex-start;padding:12px;border:1px solid #e0e6df;border-radius:10px}.editorial-switch input{width:auto!important;margin-top:3px}.editorial-switch>span{display:grid;gap:3px}.editorial-switch small{color:#768078;font-weight:500}.editorial-category-form>footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid #e4e9e3;background:#fafcf9}
+@media(max-width:1180px){.editorial-content-head,.editorial-content-table>article{grid-template-columns:minmax(270px,2fr) minmax(145px,1fr) 130px}.editorial-create-layout{grid-template-columns:1fr}.editorial-category-list article{grid-template-columns:44px minmax(220px,1fr) auto}.editorial-category-list article>form{grid-column:2/-1;justify-self:end}}
+@media(max-width:900px){.editorial-tabs{grid-template-columns:1fr}.editorial-list-toolbar{grid-template-columns:1fr 1fr}.editorial-search{grid-column:1/-1}.editorial-content-head{display:none}.editorial-content-table{display:grid;gap:12px;border:0;overflow:visible}.editorial-content-table>article{grid-template-columns:1fr 1fr;padding:15px;border:1px solid #e1e7df;border-radius:13px}.editorial-content-main{grid-column:1/-1}.editorial-row-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.editorial-category-list article{grid-template-columns:44px minmax(0,1fr)}.editorial-category-list .editorial-type-badges,.editorial-category-list article>form{grid-column:2}}
+@media(max-width:620px){.editorial-panel-heading{align-items:stretch;flex-direction:column}.editorial-panel-heading .admin-primary-button{width:100%;box-sizing:border-box;text-align:center}.editorial-list-toolbar{grid-template-columns:1fr}.editorial-search{grid-column:auto}.editorial-content-table>article{grid-template-columns:1fr}.editorial-content-classification,.editorial-row-actions{grid-column:auto}.editorial-row-actions{grid-template-columns:1fr 1fr}.editorial-content-main{grid-template-columns:58px minmax(0,1fr)}.admin-editorial-thumb,.admin-editorial-placeholder{width:58px;height:58px}.editorial-category-list article{grid-template-columns:1fr}.editorial-category-list .editorial-category-icon,.editorial-category-list .editorial-type-badges,.editorial-category-list article>form{grid-column:auto}.editorial-category-list article>form,.editorial-category-list article>form button{width:100%}.editorial-category-form>.admin-form-grid{grid-template-columns:1fr}.editorial-category-form .is-wide{grid-column:auto}.editorial-category-dialog{width:calc(100% - 18px)}}
+/* v1.5.24 – KI-Transparenz */
+.editorial-ai-chip{display:inline-flex;align-items:center;gap:5px;width:max-content;padding:5px 8px;border-radius:999px;background:#ede7ff;color:#5f3a8f;font-size:9px;font-weight:900;text-transform:uppercase}.editorial-ai-chip.is-media{background:#e2eef8;color:#315f83}.editorial-ai-panel{display:grid;gap:14px;padding:18px;border:1px solid #cbd8c5;border-radius:15px;background:linear-gradient(145deg,#f8fbf5,#f0f5ec)}.editorial-ai-panel legend{padding:0 8px;color:#29482b;font-weight:900}.editorial-ai-panel>p{margin:0;color:#667365;line-height:1.55}.editorial-ai-panel>a{width:max-content;color:#527d20;font-weight:800;text-decoration:none}.editorial-ai-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.editorial-ai-grid label{display:grid;gap:7px}.editorial-ai-grid .is-wide{grid-column:1/-1}.editorial-ai-grid label>span{font-weight:780}.editorial-ai-grid small{color:#758174;font-weight:500;line-height:1.45}.editorial-ai-grid input,.editorial-ai-grid select,.editorial-ai-grid textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #cbd7c7;border-radius:10px;background:#fff;font:inherit}.editorial-ai-review{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;padding:13px;border:1px solid #d5e0d0;border-radius:11px;background:#fff}.editorial-ai-review input{width:auto!important;margin-top:3px}.editorial-ai-review>span{display:grid;gap:3px}.editorial-ai-review strong{font-size:.92rem}@media(max-width:700px){.editorial-ai-grid{grid-template-columns:1fr}.editorial-ai-grid .is-wide{grid-column:auto}}
+
+/* Editorial editor: content left, publication and AI disclosure right. */
+.editorial-create-layout{grid-template-columns:minmax(0,1fr)}
+.editorial-form-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,1fr);gap:22px;align-items:start}
+.editorial-form-sidebar{display:grid;gap:16px;min-width:0}
+.editorial-form-sidebar .editorial-ai-grid{grid-template-columns:minmax(0,1fr)}
+.editorial-form-sidebar .editorial-ai-panel{min-width:0}
+.editorial-form-sidebar .editorial-ai-panel>a{width:auto;overflow-wrap:anywhere}
+.editorial-form-sidebar .admin-distribution{display:grid;gap:12px}
+.editorial-form-sidebar .admin-distribution>label:not(.admin-check){display:grid;gap:6px}
+.editorial-form-sidebar input[type=date]{width:100%;box-sizing:border-box;padding:12px;border:1px solid #cbd7c7;border-radius:10px;font:inherit}
+.editorial-form-sidebar .admin-form-actions{flex-wrap:wrap}
+.editorial-status-chip.is-scheduled{background:#e8eefb;color:#345a92}
+@media(max-width:1000px){.editorial-form-columns{grid-template-columns:minmax(0,1fr)}}
diff --git a/docs/CHATUEBERGABE.md b/docs/CHATUEBERGABE.md
index 3514b28..e9091c2 100644
--- a/docs/CHATUEBERGABE.md
+++ b/docs/CHATUEBERGABE.md
@@ -1,6 +1,6 @@
# Landwelle – Projektübergabe
-**Aktueller Quellstand: v1.5.83 (3. Dezember 2026)**
+**Aktueller Quellstand: v1.5.85 (4. Dezember 2026)**
Dieses Repository ist die verbindliche Gitea-Quelle für das Landwelle-Webportal. Die frühere Übergabe zu einer eigenständigen ZIP-Ausgabe ist überholt.
diff --git a/docs/CURRENT_STATE.md b/docs/CURRENT_STATE.md
index 241a8b3..49b8a79 100644
--- a/docs/CURRENT_STATE.md
+++ b/docs/CURRENT_STATE.md
@@ -1,7 +1,7 @@
# Aktueller technischer Projektstand
-**Stand:** 3. Dezember 2026
-**Anwendung:** Landwelle v1.5.83
+**Stand:** 4. Dezember 2026
+**Anwendung:** Landwelle v1.5.85
**Versionsverwaltung:** Gitea, `nexverse/landwelle`, Hauptbranch `main`
**Betrieb:** Linux x64, systemd `landwelle-radio`, KeyHelp-Reverse-Proxy
diff --git a/docs/EDITORIAL_MEDIA.md b/docs/EDITORIAL_MEDIA.md
index 0ae027a..1ad3cce 100644
--- a/docs/EDITORIAL_MEDIA.md
+++ b/docs/EDITORIAL_MEDIA.md
@@ -16,7 +16,7 @@ Beiträge besitzen Slug, Titel, Teaser, Inhalt, Veröffentlichungsstatus und opt
## Verteilung
-Bei veröffentlichten Inhalten mit aktivierter Facebook-Ausgabe sendet der Server den Beitrag zum Veröffentlichungsdatum über den Facebook-Publisher. Die Zieladresse ist bei öffentlichen Regionalbeiträgen `/landwelle-vor-ort//`. Vor dem Speichern zeigt der Adminbereich eine Live-Vorschau aus Titel, Teaser, Bild und Zieladresse. Erfolgreiche Übertragungen, ausstehende Zustände und Fehler werden am Inhalt angezeigt; ein manueller Wiederholungsversand ist möglich. Zugangsdaten und Plattformtokens bleiben ausschließlich serverseitig. Push-Ausgaben bleiben als eigener Verteilungsweg gespeichert.
+Die Redaktion veröffentlicht Inhalte ausschließlich auf der Webseite. Facebook-Vorschau, Verteilungsstatus und automatischer sowie manueller Facebook-Versand wurden entfernt. Historische Versanddaten und die bisherigen allgemeinen Social-Media-Einstellungen bleiben erhalten.
## Mediathek
@@ -30,7 +30,7 @@ Seit v1.5.15 ist der Textblock des Mediathek-Heros wieder exakt am globalen Seit
## KI-Transparenz ab v1.5.25
-Redaktionseinträge speichern `ai_usage`, `ai_human_reviewed`, `ai_editorial_responsible` und `ai_disclosure`. Bilder aus der Medienverwaltung besitzen eine unabhängige Klassifizierung über `media_assets.ai_usage` und `media_assets.ai_disclosure`. Die öffentliche Detailseite, Startseitenkarten und Facebook-Ausgaben übernehmen die Kennzeichnung automatisch. Ein Häkchen für menschliche Prüfung darf nur nach einer substanziellen inhaltlichen Kontrolle gesetzt werden.
+Redaktionseinträge speichern `ai_usage`, `ai_human_reviewed`, `ai_editorial_responsible` und `ai_disclosure`. Bilder aus der Medienverwaltung besitzen eine unabhängige Klassifizierung über `media_assets.ai_usage` und `media_assets.ai_disclosure`. Die öffentliche Detailseite, Startseitenkarten übernehmen die Kennzeichnung automatisch. Ein Häkchen für menschliche Prüfung darf nur nach einer substanziellen inhaltlichen Kontrolle gesetzt werden.
## KI-Wasserzeichen und nachträgliche Bearbeitung ab v1.5.25
@@ -41,4 +41,4 @@ Aktive Wasserzeichen werden derzeit in redaktionellen Beiträgen, Startseitenkar
### Veröffentlichungsplanung
-Der Editor zeigt Datum, KI-Transparenz und Speichern in der rechten Spalte. Das Datum ist beim Anlegen auf den heutigen Tag voreingestellt. Nur mit Status „Veröffentlicht“ werden Inhalte sichtbar: heute sofort, bei einem zukünftigen Datum ab 00:00 Uhr deutscher Zeit. In der Inhaltsliste erscheint bis dahin „Geplant“. Entwürfe, Prüfung und Archivierung veröffentlichen nichts. Facebook (optional) wird für geplante Beiträge automatisch im 30-Sekunden-Takt geprüft; bei Fehlern kann der Versand manuell wiederholt werden. Bereits extern veröffentlichte Facebook-Beiträge werden durch eine spätere Terminänderung nicht zurückgerufen.
+Der Editor zeigt Datum, KI-Transparenz und Speichern in der rechten Spalte. Das Datum ist beim Anlegen auf den heutigen Tag voreingestellt. Nur mit Status „Veröffentlicht“ werden Inhalte sichtbar: heute sofort, bei einem zukünftigen Datum ab 00:00 Uhr deutscher Zeit. In der Inhaltsliste erscheint bis dahin „Geplant“. Entwürfe, Prüfung und Archivierung veröffentlichen nichts. Die geplante Veröffentlichung auf landwelle.de ist unabhängig von externen Plattformen. Bereits extern veröffentlichte Beiträge werden nicht verändert.
diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md
index db25ac3..a952e48 100644
--- a/docs/ROADMAP.md
+++ b/docs/ROADMAP.md
@@ -1,6 +1,6 @@
# Landwelle – Entwicklungsfahrplan
-**Stand: Dezember 2026 · Webportal v1.5.83**
+**Stand: Dezember 2026 · Webportal v1.5.85**
Landwelle wird als Webradio und Regionalportal für Niedersachsen weiterentwickelt. Dieser Fahrplan beschreibt mögliche nächste Schritte – keine Zusage für feste Veröffentlichungstermine.
diff --git a/scripts/test-postgres-integration.sh b/scripts/test-postgres-integration.sh
index 655d785..e689609 100755
--- a/scripts/test-postgres-integration.sh
+++ b/scripts/test-postgres-integration.sh
@@ -72,6 +72,22 @@ with (root/'portal.log').open('w+') as log:
with client.open(base+'/admin/media',timeout=30) as r:
assert r.status==200 and r.read()
print('HTTP 200 authenticated media gallery',flush=True)
+ for tab in ('contents','create','categories'):
+ with client.open(base+'/admin/editorial?tab='+tab,timeout=30) as r:
+ page=r.read().decode()
+ assert r.status==200 and 'Redaktionssystem' in page
+ assert 'data-facebook-' not in page and 'name="post_to_facebook"' not in page and 'value="publish_facebook"' not in page
+ if tab=='create':
+ assert 'name="publication_date"' in page and 'name="ai_usage"' in page and 'name="media_asset_id"' in page
+ import re
+ csrf=re.search(r'name="csrf_token" value="([^"]+)"',page).group(1)
+ print('HTTP 200 editorial '+tab+' without Facebook controls',flush=True)
+ try:
+ client.open(base+'/admin/editorial',data=urllib.parse.urlencode(dict(csrf_token=csrf,action='publish_facebook',id='1')).encode(),timeout=15)
+ raise AssertionError('obsolete Facebook action accepted')
+ except urllib.error.HTTPError as error:
+ assert error.code==400,error.code
+ print('HTTP 400 obsolete Facebook action rejected',flush=True)
finally:
p.terminate()
try:p.wait(timeout=20)
Facebook-Seite
Facebook-Seite (bisherige Einstellungen)
Die Redaktion versendet keine Beiträge mehr automatisch an Facebook.
Bei veröffentlichten Redaktionsbeiträgen mit aktivem Facebook-Haken wird der Beitrag unmittelbar über die Facebook Pages API veröffentlicht.
Landwelle Kanal
Die offizielle WhatsApp Cloud API unterstützt derzeit keine automatische Veröffentlichung in WhatsApp-Kanälen. Die Kanal-URL wird zentral gespeichert; automatische Posts werden erst aktiviert, sobald Meta dafür eine offizielle Schreib-API bereitstellt.