Commentaire d’issue · Issue #843 Syndicator-mastodon only works for Notes post type, others fail · @rmdes
@eclecticpassions sorry, I closed the loop too early here. Digging back in on beta.31, there are two separate things going on.
Likes and reposts. Indiekit prefers native actions: like a Mastodon post and it gets favourited, rather than a new status being posted that links to it. The bug is that “native” currently only works for posts on your own server. post() checks isSameOrigin(like-of, serverUrl), so liking a status on any other instance is skipped and reported as “did not return a URL”. The syndicator already resolves remote statuses for replies (resolveRemoteStatus, #927). Likes and reposts just need the same step, so a like of a status on another server becomes a real favourite. This doesn’t change any defaults or add an option, and without the ActivityPub plugin it’s the only way a like reaches the fediverse.
For URLs that can’t be resolved, such as a blog post that isn’t on the fediverse, I’d keep today’s behaviour by default and add opt-in syndicateExternalLikes / syndicateExternalReposts options. They’d post a status with your comment and a link instead. @paulrobertlloyd, does that fit what you meant by an opt-out, or did you also want a way to turn off native favourites for same-server posts?
The posts list. The type/search filters you used came from my fork, which queried the database directly, so they didn’t carry over. Micropub q=source upstream already supports filter and category. I’ll add a post-type filter and a filter form on the posts page that uses them.
I’ll open PRs for the cross-server likes fix first, then the posts filter.