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
@@ -247,7 +247,29 @@ class Claim:
|
||||
facet: Facet | None = None
|
||||
|
||||
|
||||
Record = Union[PersonRecord, OrgRecord, SocialAccount, VoteEvent, Event, Claim, Document]
|
||||
@dataclass
|
||||
class PostRemoved:
|
||||
"""A stored post is no longer available on its platform.
|
||||
|
||||
The Loader removes the platform's text everywhere and keeps a marked record (who, when, link), so the
|
||||
fact that the post existed and disappeared stays on the record. See docs/legal.md.
|
||||
"""
|
||||
|
||||
url: str
|
||||
platform: str
|
||||
platform_label: str
|
||||
detected_at: datetime
|
||||
|
||||
|
||||
@dataclass
|
||||
class ArchiveCopy:
|
||||
"""A public archive (Internet Archive) holds a copy of this document."""
|
||||
|
||||
url: str
|
||||
archive_url: str
|
||||
|
||||
|
||||
Record = Union[PersonRecord, OrgRecord, SocialAccount, VoteEvent, Event, Claim, Document, PostRemoved, ArchiveCopy]
|
||||
|
||||
|
||||
def to_jsonable(obj: Any) -> Any:
|
||||
|
||||
Reference in new issue
Block a user