(self, slug: str, platform: str)
| 126 | handle.write("\n") |
| 127 | |
| 128 | def is_syndicated(self, slug: str, platform: str) -> bool: |
| 129 | post = self.raw["posts"].get(slug) |
| 130 | if not post: |
| 131 | return False |
| 132 | entry = post.get(platform) |
| 133 | return bool(entry and entry.get("url")) |
| 134 | |
| 135 | def record(self, slug: str, platform: str, payload: dict[str, Any]) -> None: |
| 136 | post = self.raw["posts"].setdefault(slug, {}) |