Mark posts that disappear from X instead of erasing them; pin mcp below 2
social.x_deletions checks stored posts through the official API. A post X reports as not found keeps a marked record (author, link, dates, Internet Archive link if a copy exists) while every copy of its text is removed, as the Developer Agreement requires. A post that shows up in the timeline again is restored by the normal upsert. mcp 2.x removed FastMCP, which crash-looped the MCP server on first deploy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0e21730b9f
commit
693c32a5e9
18 files changed
+265
-16
No files matched your search
@@ -542,6 +542,8 @@
|
||||
"intro": "Öffentliche Beiträge von Politiker:innen und Parteien auf Bluesky, Mastodon, öffentlichen Telegram-Kanälen und YouTube.",
|
||||
"none": "Keine Beiträge.",
|
||||
"original": "Original ansehen",
|
||||
"removed": "Dieser Beitrag ist auf der Plattform nicht mehr verfügbar (festgestellt am {date}). Seinen Text zeigen wir daher nicht mehr.",
|
||||
"archivedCopy": "Kopie im Internet Archive",
|
||||
"unverified": "Konto nicht bestätigt",
|
||||
"unverifiedHint": "Das Konto stammt aus Wikidata und wurde von keiner offiziellen Seite bestätigt.",
|
||||
"platform": "Plattform",
|
||||
|
||||
@@ -542,6 +542,8 @@
|
||||
"intro": "Public posts by politicians and parties on Bluesky, Mastodon, public Telegram channels and YouTube.",
|
||||
"none": "No posts.",
|
||||
"original": "View original",
|
||||
"removed": "This post is no longer available on the platform (detected on {date}), so we no longer show its text.",
|
||||
"archivedCopy": "Copy in the Internet Archive",
|
||||
"unverified": "account unconfirmed",
|
||||
"unverifiedHint": "The account comes from Wikidata and was not confirmed by an official page.",
|
||||
"platform": "Platform",
|
||||
|
||||
@@ -16,7 +16,10 @@ export async function SocialFeed({posts, showAuthor = true}: {posts: SocialPost[
|
||||
if (!posts.length) return <EmptyState icon="message">{t('none')}</EmptyState>;
|
||||
return (
|
||||
<ul className="feed-grid">
|
||||
{posts.map((post) => (
|
||||
{posts.map((post) => {
|
||||
const removed = post.data.removed_from_platform === true;
|
||||
const archived = post.evidence.find((ev) => ev.archive_url)?.archive_url;
|
||||
return (
|
||||
<li key={post.id}>
|
||||
<article className="post">
|
||||
<div className="post-head">
|
||||
@@ -30,10 +33,22 @@ export async function SocialFeed({posts, showAuthor = true}: {posts: SocialPost[
|
||||
</div>
|
||||
{post.title && <p className="post-title">{post.title}</p>}
|
||||
{post.excerpt && <p className="post-text">{post.excerpt}</p>}
|
||||
<p className="post-foot"><ExternalLink href={post.url}>{t('original')}</ExternalLink></p>
|
||||
{removed && (
|
||||
<p className="post-text muted">
|
||||
{t('removed', {date: formatDate(String(post.data.removed_detected_at), locale)})}
|
||||
</p>
|
||||
)}
|
||||
{(!removed || archived) && (
|
||||
<p className="post-foot">
|
||||
{removed
|
||||
? <ExternalLink href={archived as string}>{t('archivedCopy')}</ExternalLink>
|
||||
: <ExternalLink href={post.url}>{t('original')}</ExternalLink>}
|
||||
</p>
|
||||
)}
|
||||
</article>
|
||||
</li>
|
||||
))}
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user