Logic for local and relevant posts