Open finagle29 opened 8 years ago
I'm not sure I understand the bug, or the screenshot. XKit.interface.get_posts()
returns all posts without a given CSS class. What is the behaviour you're expecting?
@0xazure it shouldn't return the post edit window. there's a different function for that.
edit windows aren't posts in the way people using post_listener are expecting
On Thu, Nov 5, 2015 at 2:05 PM 0xazure notifications@github.com wrote:
I'm not sure I understand the bug, or the screenshot. XKit.interface.get_posts() returns all posts not containing a given CSS class. What is the behaviour you're expecting?
— Reply to this email directly or view it on GitHub https://github.com/new-xkit/XKit/issues/676#issuecomment-154154822.
there's a different function for that.
You'll have to direct me to the code, because a perusal of XKit.interface
in both xkit_patches
and the docs hasn't turned anything up.
As far as filtering out the post window "post", we might be able to exclude .post-form
? Though that class is higher up the DOM tree; there's nothing at the same level as .post
that's unique to the post window as far as I can see. My jQ is rusty though, so I'm not sure if that would work.
@0xazure post_window_listener
On Thu, Nov 5, 2015 at 2:45 PM 0xazure notifications@github.com wrote:
there's a different function for that.
You'll have to direct me to the code, because a perusal of XKit.interface in both xkit_patches and the docs hasn't turned anything up.
As far as filtering out the post window "post", we might be able to exclude .post-form? Though that class is higher up the DOM tree; there's nothing at the same level as .post that's unique to the post window as far as I can see. My jQ is rusty though, so I'm not sure if that would work.
— Reply to this email directly or view it on GitHub https://github.com/new-xkit/XKit/issues/676#issuecomment-154169800.
Oh, the listener mechanism. Sorry, I was only thinking of functions like get_posts()
that you'd have to call manually.
yes, the edit window is not a post on the dashboard and therefore shouldn't be returned by get_posts.
On Thu, Nov 5, 2015 at 3:00 PM 0xazure notifications@github.com wrote:
Oh, the listener mechanism. Sorry, I was only thinking of functions like get_posts() that you'd have to call manually.
— Reply to this email directly or view it on GitHub https://github.com/new-xkit/XKit/issues/676#issuecomment-154173794.
Not sure I still find this compelling, but we should make sure this isn't an RDO bug (NINETY percent sure we fixed it....)
This causes things like this to happen when RDO is enabled and ER is not (test post http://120983019283-testing.tumblr.com/post/131826469124/teen-stanley-b3-and-stanford-c3-hugging-if).