-
Notifications
You must be signed in to change notification settings - Fork 52
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
publish: support multi-type posts (not planned) #832
Comments
...not to mention that i'd have to make granary reasonably handle or error out on multiply valued |
ok, the crash is now a nice 400 with error message. renamed this issue to cover actually supporting combined reply and tag-of. (low priority, not anytime soon.) |
I'm generalizing this issue to cover all multi-type posts that Bridgy Publish would have to translate to more than one action inside a silo. i don't plan to support those, for a few reasons beyond just the AS1 implementation details above. specifically:
this begs the question, what should we do with multi type posts then? we could either return an error, which we currently do with the reply+tag posts described here, or we could pick a single part of them, which we currently do with all other multi-type posts. i documented that in b42365f yesterday. erroring out is probably safer, and follows the Principle of Least Surprise, but publishing a single part is more convenient and expected by current users. 🤷 |
i'm doing a sweep and closing issues that i don't plan to do myself or accept a PR for. apologies for the bad news, or if this is a surprise. feel free to reopen if you feel strongly. |
cc @tantek @kartikprabhu. experimental use case: https://indieweb.org/tag-reply#tag_and_comment
the difficulty is, when we convert to AS1 internally, we need to represent it as both a reply and a tag-of, and AS1 doesn't really handle multiple types (or objects) in a single activity: http://activitystrea.ms/specs/json/1.0/#activity , http://activitystrea.ms/specs/json/1.0/#rfc.section.3.4 . that's fine, i can make granary handle multiply valued
objectType
andverb
, it'll just take some work.in the short term , the more likely answer is that i'll fail fast with a nicer human readable error instead of crashing.
IRC discussion (and earlier). stack trace from the log:
simplified mf2:
possible AS1 that we could convert it to:
activity
is a qualitatively different object type thancomment
, so combining them like this is really awkward, and i don't know how to indicate that thetag
verb only applies toactivity
. i expect these and other problems are why AS1 made them singly valued in the first place.The text was updated successfully, but these errors were encountered: