Fixed filter in get_postrelated_by, added filter by object