Remove item slack notifications
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
parent
ce72a392ab
commit
d554fae7cd
@ -467,11 +467,6 @@ def view_inventory_claim(item_id):
|
||||
"inventory.owner.display_name": user["name"],
|
||||
},
|
||||
})
|
||||
item_name = format_name(item)
|
||||
msg = "%s has claimed %s" % (user["name"], item_name)
|
||||
if item.get("shortener") and item["shortener"].get("slug"):
|
||||
msg += ("\nk6.ee/%s" % item["shortener"]["slug"])
|
||||
spam(msg, channel)
|
||||
return redirect("/m/inventory/%s/view" % item_id)
|
||||
|
||||
|
||||
@ -495,11 +490,6 @@ def view_inventory_use(item_id):
|
||||
"inventory.user.display_name": user["name"],
|
||||
},
|
||||
})
|
||||
item_name = format_name(item)
|
||||
msg = "%s has started using %s" % (user["name"], item_name)
|
||||
if item.get("shortener") and item["shortener"].get("slug"):
|
||||
msg += ("\nk6.ee/%s" % item["shortener"]["slug"])
|
||||
spam(msg, channel)
|
||||
return redirect("/m/inventory/%s/view" % item_id)
|
||||
|
||||
|
||||
@ -522,9 +512,4 @@ def view_inventory_vacate(item_id):
|
||||
"inventory.user": ""
|
||||
},
|
||||
})
|
||||
item_name = format_name(item)
|
||||
msg = "%s has stopped using %s" % (user["name"], item_name)
|
||||
if item.get("shortener") and item["shortener"].get("slug"):
|
||||
msg += ("\nk6.ee/%s" % item["shortener"]["slug"])
|
||||
spam(msg, channel)
|
||||
return redirect("/m/inventory/%s/view" % item_id)
|
||||
|
Loading…
Reference in New Issue
Block a user