mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: remove targetUsernames deprecation
Stable already has this rename, no need to carry the deprecation anymore.
This commit is contained in:
parent
83f5f9176b
commit
20d8b49add
@ -77,8 +77,6 @@ const CLOSED = "closed",
|
|||||||
composerTime: "composerTime",
|
composerTime: "composerTime",
|
||||||
typingTime: "typingTime",
|
typingTime: "typingTime",
|
||||||
postId: "post.id",
|
postId: "post.id",
|
||||||
// TODO remove together with 'targetUsername' deprecations
|
|
||||||
usernames: "targetUsernames",
|
|
||||||
recipients: "targetRecipients"
|
recipients: "targetRecipients"
|
||||||
},
|
},
|
||||||
_add_draft_fields = {},
|
_add_draft_fields = {},
|
||||||
@ -342,14 +340,6 @@ const Composer = RestModel.extend({
|
|||||||
return options;
|
return options;
|
||||||
},
|
},
|
||||||
|
|
||||||
@discourseComputed("targetRecipients")
|
|
||||||
targetUsernames(targetRecipients) {
|
|
||||||
deprecated(
|
|
||||||
"`targetUsernames` is deprecated, use `targetRecipients` instead."
|
|
||||||
);
|
|
||||||
return targetRecipients;
|
|
||||||
},
|
|
||||||
|
|
||||||
@discourseComputed("targetRecipients")
|
@discourseComputed("targetRecipients")
|
||||||
targetRecipientsArray(targetRecipients) {
|
targetRecipientsArray(targetRecipients) {
|
||||||
const recipients = targetRecipients ? targetRecipients.split(",") : [];
|
const recipients = targetRecipients ? targetRecipients.split(",") : [];
|
||||||
|
Loading…
Reference in New Issue
Block a user