Comment on What are the activity_id formats for various platforms?
rglullis@communick.news 22 hours agoBut then why do you worry about the ap_id patterns from other software?
Comment on What are the activity_id formats for various platforms?
rglullis@communick.news 22 hours agoBut then why do you worry about the ap_id patterns from other software?
admiralpatrick@lemmy.world 20 hours ago
I’m making an “omnisearch” box.
Paste in an AP_ID into the search field, and it auto-resolves it and redirects you to your instance’s local copy (which is very fast) instead of going through the whole search process (which is slow). To prevent false positives, I’m matching the various ap_id formats and only doing the resolution on those; anything else gets passed to search.
Anything else that falls through the cracks just gets passed to search as usual (which also does a resolveObject lookup).
It’s to make life easier.