[FIX] Don't crash on action posts missing a label

This commit is contained in:
Firepup650 2023-09-12 06:00:23 -05:00 committed by GitHub
parent e9c7cb5c3f
commit a17c9763d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -480,7 +480,7 @@ function initialize(api) {
}
api.addPostSmallActionClassesCallback((post) => {
if (post.actionCode.includes("assigned") && !siteSettings.assigns_public) {
if (!!post.actionCode && post.actionCode.includes("assigned") && !siteSettings.assigns_public) {
return ["private-assign"];
}
});