Initial fix for #2479: New post should be displayed on timeline only if it belongs there (AJAX post)
Initial fix for #2479: New post should be displayed on timeline only if it belongs there (AJAX post)

Previously we pushed out your latest post into the currently visible timeline regardless of whether it belonged there or not. This could be pretty confusing!

Currently we don't have clearly machine-readable info on the page and returned notice HTML to determine whether it belongs, but we can do a couple checks easily which I've added:
* public timeline (always show)
* 'and friends' timeline (show for your own page only)
* profile timeline (show for your own page only)

Other places that should be added in the future:
* group timelines if it's a group your posting to
* tag timelines if the post contains the tag
* reply & friends timelines for people you've mentioned

Currently those aren't easy since the mention/group target links in the notice HTML are using the canonical form with user or group ID, while the available navigation links we can use to identify the current page use the names.

csarven/statusnet,faulteh/gnu-social,gnusocial/mainline,xebia/statusnet-oauth2,charlycoste/StatusNet,bankonme/gnu-social,bankonme/gnu-social,sikevux/bsk-social,UngPirat/freesocial,znarf/statusnet-ladistribution,studio666/gnu-social,furtherfield/gnu-social,d3vgru/StatusNet,foocorp/gnu-social,furtherfield/gnu-social,shashi/StatusNet,sikevux/bsk-social,zcopley/StatusNet,csarven/statusnet,zcopley/zcopleys-statusnet-clone,foocorp/gnu-social,d3vgru/StatusNet,chimo/social,shashi/StatusNet,eXcomm/gnu-social,xebia/statusnet-oauth2,Piratas/tortuga,studio666/gnu-social,gnusocial/mainline,brion/StatusNet,foocorp/gnu-social,minmb/statusnet,d3vgru/StatusNet,zcopley/StatusNet,chimo/social,faulteh/gnu-social,charnimda/lgbtpzn-social,studio666/gnu-social,studio666/gnu-social,zcopley/zcopleys-statusnet-clone,eXcomm/gnu-social,zh/statusnet,zh/statusnet,gnusocial/mainline,brion/StatusNet,minmb/statusnet,furtherfield/gnu-social,minmb/statusnet,zcopley/zcopleys-statusnet-clone,eXcomm/gnu-social,znarf/statusnet-ladistribution,csarven/statusnet,sikevux/bsk-social,Piratas/tortuga,zcopley/StatusNet,faulteh/gnu-social,Piratas/tortuga,xebia/statusnet-oauth2,eXcomm/gnu-social,brion/StatusNet,bankonme/gnu-social,UngPirat/freesocial,Piratas/tortuga,faulteh/gnu-social,charlycoste/StatusNet,charlycoste/StatusNet,chimo/social,charnimda/lgbtpzn-social,UngPirat/freesocial,gnusocial/mainline,csarven/statusnet,zh/statusnet,furtherfield/gnu-social,sikevux/bsk-social,bankonme/gnu-social,znarf/statusnet-ladistribution,charnimda/lgbtpzn-social,shashi/StatusNet