forked from rDrama/rDrama
1
0
Fork 0

use textlink

master
Aevann 2024-02-28 18:01:48 +02:00
parent 9ebdf46c62
commit 57f3c84bbf
2 changed files with 9 additions and 9 deletions

View File

@ -2156,7 +2156,7 @@ def mark_effortpost(pid, v):
p.author.pay_account('coins', coins)
if v.id != p.author_id:
send_repeatable_notification(p.author_id, f":marseyclapping: @{v.username} (a site admin) has marked [{p.title}](/post/{p.id}) as an effortpost, it now gets x{mul} coins from votes. You have received {coins} coins retroactively, thanks! :!marseyclapping:")
send_repeatable_notification(p.author_id, f":marseyclapping: @{v.username} (a site admin) has marked {p.textlink} as an effortpost, it now gets x{mul} coins from votes. You have received {coins} coins retroactively, thanks! :!marseyclapping:")
return {"message": "Post has been marked as an effortpost!"}
@ -2193,6 +2193,6 @@ def unmark_effortpost(pid, v):
p.author.charge_account('coins', coins)
if v.id != p.author_id:
send_repeatable_notification(p.author_id, f":marseyitsover: @{v.username} (a site admin) has unmarked [{p.title}](/post/{p.id}) as an effortpost. {coins} coins have been deducted from you. :!marseyitsover:")
send_repeatable_notification(p.author_id, f":marseyitsover: @{v.username} (a site admin) has unmarked {p.textlink} as an effortpost. {coins} coins have been deducted from you. :!marseyitsover:")
return {"message": "Post has been unmarked as an effortpost!"}

View File

@ -732,7 +732,7 @@ def submit_post(v, hole=None):
gevent.spawn(postprocess_post, p.url, p.body, p.body_html, p.id, generate_thumb, False)
if flag_effortpost and not (SITE_NAME == 'WPD' and v.truescore < 500):
body = f"@{v.username} has requested that [{p.title}](/post/{p.id}) be marked as an effortpost!"
body = f"@{v.username} has requested that {p.textlink} be marked as an effortpost!"
if SITE == 'rdrama.net':
send_repeatable_notification(AEVANN_ID, body)
else:
@ -844,7 +844,7 @@ def mark_post_nsfw(pid, v):
g.db.add(ma)
position = f'a /h/{p.hole} mod'
send_repeatable_notification(p.author_id, f"@{v.username} ({position}) has marked [{p.title}](/post/{p.id}) as NSFW")
send_repeatable_notification(p.author_id, f"@{v.username} ({position}) has marked {p.textlink} as NSFW")
return {"message": "Post has been marked as NSFW!"}
@ -886,7 +886,7 @@ def unmark_post_nsfw(pid, v):
g.db.add(ma)
position = f'a /h/{p.hole} mod'
send_repeatable_notification(p.author_id, f"@{v.username} ({position}) has unmarked [{p.title}](/post/{p.id}) as NSFW")
send_repeatable_notification(p.author_id, f"@{v.username} ({position}) has unmarked {p.textlink} as NSFW")
return {"message": "Post has been unmarked as NSFW!"}
@ -961,7 +961,7 @@ def set_new_sort(post_id, v):
target_post_id = p.id,
)
g.db.add(ma)
send_repeatable_notification(p.author_id, f"@{v.username} (a site admin) has changed the the default sorting of comments on [{p.title}](/post/{p.id}) to `new`")
send_repeatable_notification(p.author_id, f"@{v.username} (a site admin) has changed the the default sorting of comments on {p.textlink} to `new`")
return {"message": "Changed the the default sorting of comments on this post to 'new'"}
@ -983,7 +983,7 @@ def unset_new_sort(post_id, v):
target_post_id = p.id,
)
g.db.add(ma)
send_repeatable_notification(p.author_id, f"@{v.username} (a site admin) has changed the the default sorting of comments on [{p.title}](/post/{p.id}) to `hot`")
send_repeatable_notification(p.author_id, f"@{v.username} (a site admin) has changed the the default sorting of comments on {p.textlink} to `hot`")
return {"message": "Changed the the default sorting of comments on this post to 'hot'"}
@ -1144,7 +1144,7 @@ if SITE_NAME == 'WPD':
target_post_id = p.id,
)
g.db.add(ma)
send_repeatable_notification(p.author_id, f"@{v.username} (a site admin) has add a child warning to [{p.title}](/post/{p.id})")
send_repeatable_notification(p.author_id, f"@{v.username} (a site admin) has add a child warning to {p.textlink}")
return {"message": "A child warning has been added to the post!"}
@ -1170,7 +1170,7 @@ if SITE_NAME == 'WPD':
target_post_id = p.id,
)
g.db.add(ma)
send_repeatable_notification(p.author_id, f"@{v.username} (a site admin) has removed the child warning from [{p.title}](/post/{p.id})")
send_repeatable_notification(p.author_id, f"@{v.username} (a site admin) has removed the child warning from {p.textlink}")
return {"message": "The child warning has been removed from the post!"}