Change mimetype from text/x-feed-entry to application/x-feed-entry

This commit is contained in:
Jaidyn Ann 2021-03-24 13:15:59 -05:00
parent cf5a6ce843
commit 2147c43103
2 changed files with 7 additions and 6 deletions

View File

@ -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);
}
}

View File

@ -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");