bufferapp/diggdigg — pull request #2 by JimmStout (2012-11-19 18:55:28+00:00)
Title: Contrib: Bug fix manually placed Flattr buttons

Hi! Thanks for all the awesome social buttons :).

I was using your Digg Digg plugin and noticed that using the Flattr button with manual placement caused the button to credit a default Flattr user called "flattr." I updated the dd_flattr_generate function to work the same way your dd_twitter_generate function works. It passes a globalcfg variable into constructURL; constructURL was already designed to handle globalcfg, but dd_flattr_generate wasn't using the variable.

I also updated the dd_manual_code array so it shows the correct manual placement code for flattr in the settings. Here's the new manual placement:

Modeled after:

Hope this is helpful to everyone else trying to manually place the Flattr buttons. :) Thanks again!

Jimm