From 2147c43103414f1b7f6f1208d154d5c7e7ba8348 Mon Sep 17 00:00:00 2001 From: Jaidyn Ann Date: Wed, 24 Mar 2021 13:15:59 -0500 Subject: [PATCH] Change mimetype from text/x-feed-entry to application/x-feed-entry --- src/App.cpp | 5 +++-- src/Mimetypes.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/App.cpp b/src/App.cpp index d34cfea..4805a1b 100644 --- a/src/App.cpp +++ b/src/App.cpp @@ -152,9 +152,10 @@ App::RefsReceived(BMessage* message) info.SetTo(&file); info.GetType(type); - if (BString(type) == BString("text/x-feed-entry")) + if (BString(type) == "application/x-feed-entry" + || BString(type) == "text/x-feed-entry") _OpenEntryFile(&msg); - else if (BString(type) == BString("application/x-feed-source")) + else if (BString(type) == "application/x-feed-source") _OpenSourceFile(&msg); } } diff --git a/src/Mimetypes.cpp b/src/Mimetypes.cpp index 61eeeb9..49d9644 100644 --- a/src/Mimetypes.cpp +++ b/src/Mimetypes.cpp @@ -39,7 +39,7 @@ feedMimeType() mime.GetAttrInfo(&info); mime.SetShortDescription("Feed"); - mime.SetLongDescription("Atom/RSS Feed"); + mime.SetLongDescription("Atom/RSS feed"); addAttribute(info, "Feed:name", "Name"); addAttribute(info, "Feed:description", "Description"); @@ -55,7 +55,7 @@ bool feedEntryMimeType() { BMessage info; - BMimeType mime("text/x-feed-entry"); + BMimeType mime("application/x-feed-entry"); if (mime.IsInstalled()) return true; @@ -68,8 +68,8 @@ feedEntryMimeType() mime.GetAttrInfo(&info); - mime.SetShortDescription("Feed Entry"); - mime.SetLongDescription("Atom/RSS Feed Entry"); + mime.SetShortDescription("Feed entry"); + mime.SetLongDescription("Atom/RSS feed entry"); addAttribute(info, "Feed:name", "Name"); addAttribute(info, "Feed:description", "Description");