# Canned replies should require titles to be unique

**URL:** <https://meta.discourse.org/t/canned-replies-should-require-titles-to-be-unique/103996>\
**Category:** Feature\
**Tags:** pr-welcome, canned-replies\
**Created:** [11 december 2018 om 11:59 UTC](https://meta.discourse.org/t/canned-replies-should-require-titles-to-be-unique/103996 "2018-12-11T11:59:56Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [12 december 2018 om 04:07 UTC](https://meta.discourse.org/t/canned-replies-should-require-titles-to-be-unique/103996/6 "2018-12-12T04:07:08Z")

</div>

> [@Good first issue?](https://meta.discourse.org/t/good-first-issue/104054/15):
>
> I need to fetch the list of shared canned replies, loop over every reply, and throw an error to the user if the title matches any of the replies.

That’s one way you could do it. But if you make a field UNIQUE any attempt to INSERT a duplicate value would cause a fail.

---

_[View the full topic](https://meta.discourse.org/t/canned-replies-should-require-titles-to-be-unique/103996)._
