drafts: Remove support for legacy drafts with "subject".

This removes the temporary get_draft_topic helper from utils and remove
references to draft.subject.

This finishes up the work from
9861cdfeb6. Since 2018 we had stopped
referring to the "subject" property, it is considered safe to remove
this code now. It's impossible to directly upgrade to the current
release without substantial downtime for upgrading the OS, so this
logic is unlikely to provide any future benefit.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li
2022-09-28 15:35:43 -04:00
committed by Tim Abbott
parent 19ee1e92e7
commit 1e64aa9b79
3 changed files with 6 additions and 33 deletions

View File

@@ -217,11 +217,6 @@ export function get_match_topic(obj) {
return obj.match_subject;
}
export function get_draft_topic(obj) {
// We will need to support subject for old drafts.
return obj.topic || obj.subject || "";
}
export function get_reload_topic(obj) {
// When we first upgrade to releases that have
// topic=foo in the code, the user's reload URL