activitypub: visibility: use SQL thread_visibility() function instead of manually...