]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Initial fix for #2479: New post should be displayed on timeline only if it belongs...
authorBrion Vibber <brion@pobox.com>
Thu, 29 Jul 2010 20:27:09 +0000 (13:27 -0700)
committerBrion Vibber <brion@pobox.com>
Thu, 29 Jul 2010 20:27:09 +0000 (13:27 -0700)
commit54d723adc186150c00d21214922053c3930fe3af
tree6af401ab681ec7ef555e5a49e73dd3142dd31a0b
parenta0b35f35b4de2311cedce69da04724b5e730ff57
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.
js/util.js