! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
[enh] Showing a {deletehash} link for imgur uploaded images
Status:
RESOLVED: LATER
Severity:
enhancement
Product:
Xfce4-screenshooter
Component:
General

Comments

Description nicomu 2018-11-09 17:39:11 CET
It's a pity that there's no undo action for Imgur postings -- so I wonder how hard it would be to show a deletehash link (  imgur.com/delete/{deletehash}  ) after a successful image upload?

As with the id value, it shall come inside <deletehash> tags: "<deletehash>15 symbols here</deletehash>", so I think it can be found by adding one more check at the end of this scan in lib/screenshooter-imgur.c::imgur_upload_job():
===
  /* returned XML is like <data type="array" success="1" status="200"><id>xxxxxx</id> */

...

  root_node = xmlDocGetRootElement(doc);
  for (child_node = root_node->children; child_node; child_node = child_node->next)
    if (xmlStrEqual(child_node->name, (const xmlChar *) "id"))
       online_file_name = xmlNodeGetContent(child_node);
  TRACE("found picture id %s\n", online_file_name);
===

I'm not sure what would be the best way to display the link, but may be just adding an extra output field next to "BBCode for forum" will do?
Anyway, thank you for the app -- it is next to perfect!
Comment 1 Andre Miranda editbugs 2018-12-15 03:02:14 CET
This will be provided by the enhancement proposed in Bug 14973.

Bug #14862

Reported by:
nicomu
Reported on: 2018-11-09
Last modified on: 2018-12-15

People

Assignee:
Jérôme Guelfucci
CC List:
1 user

Version

Attachments

Additional information