Ticket #63 (assigned enhancement)

Opened 3 years ago

Last modified 2 years ago

extend url.rb module to auto rubyurl long URLs

Reported by: broderson@gmail.com Assigned to: giuseppe.bilotta (accepted)
Priority: normal Milestone: 0.9.11
Component: plugins Version:
Severity: normal Keywords:
Cc:

Description

The attached is the diff to url.rb module that has it check to see if the URL is long (more than 45 characters) and if so it uses the 'shorturl' library to create a shorter version which is given right after the title of the URL.

Attachments

url.diff (1.4 kB) - added by broderson@gmail.com on 02/07/06 22:28:30.
url.rb diff file

Change History

02/07/06 22:28:30 changed by broderson@gmail.com

  • attachment url.diff added.

url.rb diff file

02/08/06 11:37:00 changed by epitaph

Hrm... There are two things I'm concerned about..

1) This feature should have a setting that can be disabled 2) Should it append the url to the title message instead of spitting out a new one? I think it would be nicer that way... less channel spam.

02/08/06 13:53:01 changed by giblet

I'd agree with those comments - definitely need to be togglable, and if possible, degrade nicely if the shorturl module is not installed (so the normal behaviour still works as expected).

Apart from those minor tweaks it's a nice feature!

(follow-up: ↓ 4 ) 02/09/06 19:45:10 changed by dayne <broderson@gmail.com>

yeah, that is a good idea. I'll make the changes and submit new diff. * togglable option * disabled if no shorturl available (graceful detection) * output url on the title line

(in reply to: ↑ 3 ) 10/23/06 19:52:51 changed by giuseppe.bilotta

  • owner changed from giblet to giuseppe.bilotta.
  • status changed from new to assigned.
  • milestone set to 0.9.11.

Do you have anything new? If not, I'll try giving it a shot before the next release.

10/23/06 20:26:13 changed by giuseppe.bilotta

  • component changed from misc to plugins.