tangled
alpha
login
or
join now
zenfyr.dev
/
xpost
2
fork
atom
social media crossposting tool. 3rd time's the charm
mastodon
misskey
crossposting
bluesky
2
fork
atom
overview
issues
1
pulls
pipelines
fix: links with labels
zenfyr.dev
7 months ago
b93de3de
be34f50b
verified
This commit was signed with the committer's
known signature
.
zenfyr.dev
SSH Key Fingerprint:
SHA256:TtcIcnTnoAB5mqHofsaOxIgiMzfVBxej1AXT7DQdrTE=
+7
-4
1 changed file
expand all
collapse all
unified
split
bluesky
common.py
+7
-4
bluesky/common.py
reviewed
···
123
123
label = decode(ut8_text[start:end])
124
124
125
125
# try to unflatten links
126
126
-
split = val.split('://')
126
126
+
split = val.split('://', 1)
127
127
if len(split) > 1:
128
128
if split[1].startswith(label):
129
129
tokens.append(cross.LinkToken(val, ''))
130
130
-
elif label.endswith('...') and split[1].startswith(label[:-3]):
130
130
+
continue
131
131
+
132
132
+
if label.endswith('...') and split[1].startswith(label[:-3]):
131
133
tokens.append(cross.LinkToken(val, ''))
132
132
-
else:
133
133
-
tokens.append(cross.LinkToken(val, label))
134
134
+
continue
135
135
+
136
136
+
tokens.append(cross.LinkToken(val, label))
134
137
case 'tag':
135
138
tokens.append(cross.TagToken(decode(ut8_text[start:end])))
136
139
case 'mention':