linkify some notes

master
Aevann 2024-03-02 23:07:05 +02:00
parent 3f3626bf54
commit 51f9c5eb76
2 changed files with 6 additions and 6 deletions

View File

@ -1880,7 +1880,7 @@ def delete_media_post(v):
ma = ModAction(
kind="delete_media",
user_id=v.id,
_note=url,
_note=f'<a href="{url}">{url}</a>',
)
g.db.add(ma)

View File

@ -562,7 +562,7 @@ def upload_hole_sidebar(v, hole):
ma = HoleAction(
hole=hole.name,
kind='upload_sidebar_image',
_note=sidebarurl,
_note=f'<a href="{sidebarurl}">{sidebarurl}</a>',
user_id=v.id
)
g.db.add(ma)
@ -592,7 +592,7 @@ def delete_hole_sidebar(v, hole, index):
ma = HoleAction(
hole=hole.name,
kind='delete_sidebar_image',
_note=sidebar,
_note=f'<a href="{sidebar}">{sidebar}</a>',
user_id=v.id
)
g.db.add(ma)
@ -651,7 +651,7 @@ def upload_hole_banner(v, hole):
ma = HoleAction(
hole=hole.name,
kind='upload_banner',
_note=bannerurl,
_note=f'<a href="{bannerurl}">{bannerurl}</a>',
user_id=v.id
)
g.db.add(ma)
@ -681,7 +681,7 @@ def delete_hole_banner(v, hole, index):
ma = HoleAction(
hole=hole.name,
kind='delete_banner',
_note=banner,
_note=f'<a href="{banner}">{banner}</a>',
user_id=v.id
)
g.db.add(ma)
@ -741,7 +741,7 @@ def hole_marsey(v, hole):
ma = HoleAction(
hole=hole.name,
kind='change_marsey',
_note=hole.marseyurl,
_note=f'<a href="{hole.marseyurl}">{hole.marseyurl}</a>',
user_id=v.id
)
g.db.add(ma)