aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorConfuSomu2023-01-23 10:44:14 -0500
committerConfuSomu2023-01-23 10:44:14 -0500
commitbc0fc0bbf4557f66b8ee2ed82b1a8a4881b5856c (patch)
tree8a71ff5a546bec012d4a5e456665809f1f3014a9 /src
parent1af93e0231817ed8275300a3458ff7a37453188f (diff)
downloadActorViewer-bc0fc0bbf4557f66b8ee2ed82b1a8a4881b5856c.tar
ActorViewer-bc0fc0bbf4557f66b8ee2ed82b1a8a4881b5856c.tar.gz
ActorViewer-bc0fc0bbf4557f66b8ee2ed82b1a8a4881b5856c.zip
Fix comments
and remove misleading comment.
Diffstat (limited to 'src')
-rw-r--r--src/archive_parser.cpp4
-rw-r--r--src/mainwindow.cpp2
2 files changed, 3 insertions, 3 deletions
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;
}
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 2e4b19b..3a2c5d2 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -74,7 +74,7 @@ void MainWindow::on_actionAbout_triggered(bool checked) {
void MainWindow::on_listWidget_itemActivated(QListWidgetItem *item) {
ListItem* casted = dynamic_cast<ListItem*>(item);
- if (casted != nullptr) { // this is always a nullptr, but it should work?? https://cplusplus.com/forum/beginner/78766/
+ if (casted != nullptr) {
QString status_info = data_archive->get_html_status_info(casted->get_status_index(), ui->statusInfoText->width());
ui->statusInfoText->setHtml(status_info);
}