mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 16:26:04 +00:00
Fix container hierarchy for AppleScript selectedArticles() command. Fix #4218.
This commit is contained in:
1 parent
e0a3ba69e1
commit
b495def859
1 file changed
+2
-2
@@ -42,8 +42,8 @@ extension NSApplication : ScriptingObjectContainer {
|
||||
func selectedArticles() -> NSArray {
|
||||
let articles = appDelegate.scriptingSelectedArticles
|
||||
let scriptableArticles:[ScriptableArticle] = articles.compactMap { article in
|
||||
if let feed = article.webFeed {
|
||||
let scriptableFeed = ScriptableWebFeed(feed, container:self)
|
||||
if let feed = article.webFeed,
|
||||
let scriptableFeed = ScriptableWebFeed.scriptableWebFeed(for: feed) {
|
||||
return ScriptableArticle(article, container:scriptableFeed)
|
||||
} else {
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user