-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AP => Bluesky: add link to original post if truncated #986
Comments
More ideas in #1002! (Merged in here.) |
Would that also apply to media Bluesky doesn't support like Videos and Audio? |
Maybe! |
…to the original post for snarfed/bridgy-fed#986
Done! Example: https://indieweb.social/@snarfed/112441080098401081 => https://bsky.app/profile/snarfed.indieweb.social.ap.brid.gy/post/3kshvvi466tb2 . Presentation could be better, ideally we'd include an image if available, but it's a start. |
Good point! Reopening. |
Oh, awesome! Or you could fetch it via AP. You'd need to sign those fetches and serve a minimal AP actor with the public key; not sure if that's net more or less work than registering Mastodon OAuth clients dynamically per instance. |
That gives me another idea: I should store the full text in a custom field in the Bluesky record! |
Omg yes!! |
I haven't worked with the "low-level" AP API at all yet, just with the Mastodon REST one… and it's just one simple fetch here: mackuba/skythread@540a8b2#diff-1989dcd9cd0d832606735cbad270705ed51ae39d039b915672d37c9828e2da25R388 (it won't work for non-Mastodon instances, but I guess that won't be needed if you add that field :) |
Oh right, I forgot that big chunks of the Mastodon API are open, no auth needed. sgtm! |
A lot of non-Mastodon instances support the API so that apps work so you might be okay |
I feel like this would be a good solution to content warning as well just have the CW and then load full post maybe |
The catch is that we have no control over client UIs, whether official ones like https://bsky.app/ and the mobile apps or any others. We can't add a "load full post" button or link. |
I think it would still be useful to have the full CN text1 and hidden text/attachments as custom fields on the bridged posts, both distinct from the mechanism for text that was just truncated to avoid mixups. That would allow third party apps to implement this flow without hitting the origin instance (i.e. better for privacy) or worrying about whether it supports the Mastodon API or if there's an implementation difference on the AP level. Footnotes
|
Anyone know the etiquette for choosing field names for custom fields in |
Next step for changing the ellipsis string is to parameterize |
I think the answer to that is basically 'don't', according to https://atproto.com/specs/lexicon#authority-and-control. Is there a way to specify a secondary NSID similarly to how you can import multiple namespaces in AP? |
No, there isn't. Custom fields in existing records is generally what people do right now, there's plenty of precedent for it in the ATProto ecosystem. It's true that the docs you linked say:
...but there's no other realistic extension pattern yet. I guess one way would be to store our own separate records, and publish logic for finding those records. That's much less discoverable or usable than custom fields in existing records though. I haven't heard of any external developers using "sidecar" records like that yet. |
Hey! I've done some digging for this today. It looks like we're still at the stage where there aren't really any clear conventions for this, or to put it differently, the stage where the conventions are being formed by what we're doing ;) I've scanned the last few days worth of posts for unexpected record keys, and it looks like the only one of this kind is from the Skeets app by @seboslaw, which I think uses this for the post editing feature. The key there is named There are also several non-standard but very generic-sounding keys (and probably in most cases added by mistake), like: Some (inconclusive) threads I've found about this:
As I understand it, something like (tagging also @bnewbold) |
I just ran into that issue and would like to request the same 😅 Another suggestion, but rather than "Original post on …" I'd like to see
since that feels more descriptive of what can be expected after navigation. |
…t's HTML attempts to better preserve whitespace in profile bios. for snarfed/bridgy-fed#986
Agreed on |
Hmm, have you changed something there to add the link to original inside the post body instead of as an embed? |
Good eye! Yes, only for posts with images, since Bluesky can't do both images and link embeds in the same post. 😕 Background in #1106 (comment) and bluesky-social/atproto#2575 . |
Ahh, ok, makes sense. I was worried this was a change for all truncated posts :) I saw the discussions about the different embed types, but I didn't realize it was about this. Not ideal, but it will have to do in this case. I think it's better to have this inconsistency with posts w/o images, because otherwise we lose a lot of space for text in those too. |
Alternatively, you could possibly link just the "[...]" to the original post instead of adding a second Like: This is a very long post that was truncated becase [...]. |
Related to #976
The text was updated successfully, but these errors were encountered: