From bc0fc0bbf4557f66b8ee2ed82b1a8a4881b5856c Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Mon, 23 Jan 2023 10:44:14 -0500 Subject: Fix comments and remove misleading comment. --- src/archive_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/archive_parser.cpp') diff --git a/src/archive_parser.cpp b/src/archive_parser.cpp index 8b9d41b..0ace163 100644 --- a/src/archive_parser.cpp +++ b/src/archive_parser.cpp @@ -32,7 +32,7 @@ Archive::InitError Archive::init() { else return JsonNotObject; - // Do some more throughful checks to make sure that the JSON is actually valid. + // Do some more throughful checks to make sure that the JSON is actually valid and is a Mastodon data export (the only type supported currently) if (not (outbox_json->contains("@context") and outbox_json->value("@context").isString() and (outbox_json->value("@context").toString() == "https://www.w3.org/ns/activitystreams"))) return JsonNotActivityStream; @@ -104,7 +104,7 @@ StatusType get_status_type(QJsonObject obj) { return PRIVATE; else if (to.size() > 0) return DIRECT; - else if (to.size() == 0 and cc.size() == 0) // sending a direct message to yourself or to another actor that doesn't exist anymore + else if (to.size() == 0 and cc.size() == 0) // sending a direct message to no one or to another actor that doesn't exist anymore return DIRECT; } -- cgit v1.2.3-54-g00ecf