In terms of the condition, have just had a look it might be better to use the confluence index to determine if the attachment is a gliffy diagram, since the extractor already adds a flag, rather then reading the first part of the attachment each time. (This will mean the edit link won't show for the first minute or so after the diagram is created while the indexer catches up though.)
Will also need to consider the default comment that gets set on Gliffy diagram attachments:
DO NOT EDIT THIS ATTACHMENT. YOU WILL RUIN YOUR DIAGRAM!
could possibly be changed to something like
GLIFFY DIAGRAM, ONLY EDIT THIS DIAGRAM IN THE GLIFFY EDITOR
In terms of the condition, have just had a look it might be better to use the confluence index to determine if the attachment is a gliffy diagram, since the extractor already adds a flag, rather then reading the first part of the attachment each time. (This will mean the edit link won't show for the first minute or so after the diagram is created while the indexer catches up though.)
Will also need to consider the default comment that gets set on Gliffy diagram attachments:
DO NOT EDIT THIS ATTACHMENT. YOU WILL RUIN YOUR DIAGRAM!
could possibly be changed to something like
GLIFFY DIAGRAM, ONLY EDIT THIS DIAGRAM IN THE GLIFFY EDITOR