Created attachment 735965 [details] URL shortening patch Description of problem: Fedora pastebin now supports url shortening via ur1.ca (foss service from Identi.ca). This feature is not yet merged with sticky-notes (pull request already done), so the patch may conflicts with other patches (bz #865972). I've attached a patch which displays the shortened URL instead of the long one. Eg: ./fpaste testing 1 2 3 Uploading (0.1KiB)... http://ur1.ca/de7cb http://ur1.ca/de7cb --> http://paste.fedoraproject.org/7517/66040894/
Hi Athmane, I'll test the patch later today and let you know. Should I commit it to SCM and push a build if it works? Thanks, Ankur
(In reply to comment #1) > Hi Athmane, > > I'll test the patch later today and let you know. Should I commit it to SCM > and push a build if it works? Yes, that's would be nice. Thanks.
Created attachment 736792 [details] Fix shorturl with unescaped json in paste content I've attached a fix to issue when json data can not be decoded because of unescaped json in paste content.
Hi Athmane, This seems to work correctly: [ankur@ankur-pc fpaste(master *%=)]$ fpaste --sysinfo Gathering system info............................Uploading (14.4KiB)... http://ur1.ca/df0vx -> http://paste.fedoraproject.org/7800/05559136 [ankur@ankur-pc fpaste(master *%=)]$ fpaste --sysinfo -P no Gathering system info............................Uploading (14.4KiB)... http://ur1.ca/df0w5 -> http://paste.fedoraproject.org/7801 [ankur@ankur-pc fpaste(master *%=)]$ fpaste --sysinfo -P no -U http://paste.stg.fedoraproject.org Gathering system info............................Uploading (14.4KiB)... http://ur1.ca/df0wd -> http://paste.stg.fedoraproject.org/4125 [ankur@ankur-pc fpaste(master *%=)]$ fpaste --sysinfo -P no -U http://sites.sayakbanerjee.com/paste/ Gathering system info............................Uploading (14.4KiB)... http://sites.sayakbanerjee.com/paste/1246 [ankur@ankur-pc fpaste(master *%=)]$ Pushing to SCM and building. I've incorporated all the patches and cleaned them up. Thanks, Ankur
Looks like I forgot to add this to the update.