Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/2.5' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
petrjasek committed Dec 1, 2023
2 parents 63ec996 + 0189ae8 commit aee854c
Show file tree
Hide file tree
Showing 8 changed files with 14,932 additions and 57 deletions.
10 changes: 5 additions & 5 deletions assets/wire/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ export function getOtherMedia(item: IArticle): Array<IArticle> | null {
return null;
}

return Object.entries(item.associations ?? {})
.filter(([key, mediaItem]) => (
return Object.entries(item.associations || {})
.filter(([key, item]) => (
!key.startsWith('editor_') &&
key !== 'featuremedia' &&
mediaItem != null &&
['video', 'audio'].includes(mediaItem.type)
item != null &&
['video', 'audio'].includes(item.type)
))
.map((args) => args[1]) as IArticle[]; // it's filtering out null values in .filter
.map(([key, item]) => item) as IArticle[]; // null values are filtered in .filter
}

/**
Expand Down
4 changes: 3 additions & 1 deletion newsroom/push.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def push():
elif item.get("type") == "text":
orig = superdesk.get_resource_service("items").find_one(req=None, _id=item["guid"])
item["_id"] = publish_item(item, orig)
notify_new_wire_item.delay(item["_id"], check_topics=orig is None)
notify_new_wire_item.delay(
item["_id"], check_topics=orig is None or app.config["WIRE_NOTIFICATIONS_ON_CORRECTIONS"]
)
elif item["type"] == "planning_featured":
publish_planning_featured(item)
else:
Expand Down
Binary file modified newsroom/translations/fi/LC_MESSAGES/messages.mo
Binary file not shown.
Loading

0 comments on commit aee854c

Please sign in to comment.