summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-01-08 09:18:30 -0600
committerluxagraf <sng@luxagraf.net>2023-01-08 09:18:30 -0600
commitb556fad0deaeda984032e0923e209a56fb7aba35 (patch)
treedbd8f7ee8e964254ff412c7c325cb5d82bd595b8 /app
parent6e59da57f08373652804226ee0a2a6cf19563297 (diff)
links: added delete for wired link so things don't get cluttered.
Diffstat (limited to 'app')
-rw-r--r--app/links/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/links/models.py b/app/links/models.py
index 89e2dfc..c1bd74e 100644
--- a/app/links/models.py
+++ b/app/links/models.py
@@ -29,6 +29,8 @@ def email_link(link):
'sng@luxagraf.net',
['sng@luxagraf.net']
)
+ if link.tags.first().name = "wired"
+ link.delete()
def get_upload_path(self, filename):