"Publish from dashboard" and Twitter

Found a bug? Tell us!!
Post Reply
thh
Regular
Posts: 349
Joined: Thu Oct 26, 2006 2:38 pm
Location: Stuttgart, Germany
Contact:

"Publish from dashboard" and Twitter

Post by thh » Sat Aug 16, 2014 8:39 pm

"Publish from dashboard" had some problems, see Issue 160 https://github.com/s9y/Serendipity/issues/160, which were resolved.

It does now even work with serendipity_event_twitter and tweet the new article - but, unfortunately, without the entryTitle, as it would from the normal "new entry" screen. I didn't check for tags ...

Should I open an issue? On s9y core or the plugin?

User avatar
yellowled
Regular
Posts: 7083
Joined: Fri Jan 13, 2006 12:46 pm
Location: Eutin, Germany
Contact:

Re: "Publish from dashboard" and Twitter

Post by yellowled » Sat Aug 16, 2014 8:48 pm

Assuming that announcing posts via twitter from the same blog still works as expected, this probably is more likely related to the new core dashboard. Then again, I'm just the frontend guy. :mrgreen:

Issues with Twitter have always been hard to debug, though, due to the fact that Twitter keeps changing their friggin' API all the time. (Personally, I have resorted to using IFTTT for Twitter announcements.)

YL
amazon Wishlist - Serendipity-Podcast (German only, sorry)

thh
Regular
Posts: 349
Joined: Thu Oct 26, 2006 2:38 pm
Location: Stuttgart, Germany
Contact:

Re: "Publish from dashboard" and Twitter

Post by thh » Sun Aug 17, 2014 1:05 pm

yellowled wrote:Assuming that announcing posts via twitter from the same blog still works as expected, this probably is more likely related to the new core dashboard.
Yes, seems so.

As tags are propagated, but the title is not, that may be due - after having a short (!) look into the plugin - to an empty $entry in the twitter_published_entry() function in serendipity_event_twitter.php. That function is called with $eventData for the "backend_publish" event.

I'm not sure where to find the code for the "publish from dashboard" function, so didn't had a look there ...

If someone has a testblog set up with a Twitter account, one could check wether other placeholders - e.g. #author# - that are pulled from $entry will be replaced correctly. If they are not, that will be the culprit.

I have submitted Issue #206 https://github.com/s9y/Serendipity/issues/206 (which yellowled has already tagged :)).

mattsches
Regular
Posts: 440
Joined: Sat Nov 05, 2005 10:35 pm
Location: Wiesbaden, Germany
Contact:

Re: "Publish from dashboard" and Twitter

Post by mattsches » Tue Aug 19, 2014 10:25 am

Please see the Github issue :)

thh
Regular
Posts: 349
Joined: Thu Oct 26, 2006 2:38 pm
Location: Stuttgart, Germany
Contact:

Re: "Publish from dashboard" and Twitter

Post by thh » Tue Aug 19, 2014 1:25 pm

mattsches wrote:Please see the Github issue :)
Thanks! Tested, bug is fixed.

Post Reply