Modify query per Friendica thread.