mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Show url domain name along with 'no title' for items without title
This commit is contained in:
@@ -203,6 +203,10 @@ class Bookmark(db.Model):
|
||||
else:
|
||||
return None
|
||||
|
||||
def get_uri_domain(self):
|
||||
parsed = urlparse(self.url)
|
||||
return parsed.hostname
|
||||
|
||||
@classmethod
|
||||
def strip_url_params(cls, url):
|
||||
parsed = urlparse(url)
|
||||
|
||||
Reference in New Issue
Block a user