aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Pleroma.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-12-05 06:09:05 +0100
committerdec05eba <dec05eba@protonmail.com>2020-12-05 06:09:05 +0100
commita8e35756f9e2b2a94d76c88e699692aef05555a9 (patch)
treedc9c41210aa39a63a6dd77238c89526cb6754f86 /src/plugins/Pleroma.cpp
parent3a501ffbe0cd705eed09e697e22023754558aa89 (diff)
Matrix: scroll to bottom when receiving previous messages and no visible messages, fix thumbnail size json crash
Diffstat (limited to 'src/plugins/Pleroma.cpp')
-rw-r--r--src/plugins/Pleroma.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/Pleroma.cpp b/src/plugins/Pleroma.cpp
index c04482d..8479e39 100644
--- a/src/plugins/Pleroma.cpp
+++ b/src/plugins/Pleroma.cpp
@@ -92,15 +92,15 @@ namespace QuickMedia {
}
const rapidjson::Value &favourites_count_json = GetMember(post_json, "favourites_count");
- if(favourites_count_json.IsNumber())
+ if(favourites_count_json.IsInt())
num_favorites = favourites_count_json.GetInt();
const rapidjson::Value &reblogs_count_json = GetMember(post_json, "reblogs_count");
- if(reblogs_count_json.IsNumber())
+ if(reblogs_count_json.IsInt())
num_reblogs = reblogs_count_json.GetInt();
const rapidjson::Value &replies_count_json = GetMember(post_json, "replies_count");
- if(replies_count_json.IsNumber())
+ if(replies_count_json.IsInt())
num_replies = replies_count_json.GetInt();
const rapidjson::Value &id_json = GetMember(post_json, "id");