social media crossposting tool. 3rd time's the charm
mastodon misskey crossposting bluesky

add mention token to skip on output

zenfyr.dev 5918f9b4 8b664481

verified
Changed files
+3 -1
+3 -1
cross.py
···
block: list[Token] = []
length = 0
-
for tk in tokens: # other token types are currently not supported
+
for tk in tokens:
if isinstance(tk, TagToken):
tag_len = 1 + len(tk.tag) # (#) + tag
if length + tag_len > max_chars:
···
if seg:
append_text(seg)
length = len(seg)
+
else: #TODO fix mentions
+
block.append(tk)
if block:
blocks.append(block)