diff --git a/saoridef.h b/saoridef.h index d07f6c1..9873a59 100644 --- a/saoridef.h +++ b/saoridef.h @@ -43,6 +43,7 @@ #define SAORI_MASTODON_APIPATH_INSTANCE "/api/v1/instance" #define SAORI_MASTODON_APIPATH_ACCOUNTS "/api/v1/accounts" #define SAORI_MASTODON_APIPATH_TIMELINE "/api/v1/timelines" +#define SAORI_MASTODON_APIPATH_NOTIFICATION "/api/v1/notifications" #endif // SAORIDEF_H diff --git a/saoridon.cpp b/saoridon.cpp index 7a9f86b..b353873 100644 --- a/saoridon.cpp +++ b/saoridon.cpp @@ -164,9 +164,9 @@ m_timelineMap.clear(); m_timelineMap["home"] = QUrl(instance().url() + SAORI_MASTODON_APIPATH_TIMELINE + "/home"); - m_timelineMap["local"] = QUrl(instance().url() + SAORI_MASTODON_APIPATH_TIMELINE + "/local"); + m_timelineMap["local"] = QUrl(instance().url() + SAORI_MASTODON_APIPATH_TIMELINE + "/public?local=1"); m_timelineMap["public"] = QUrl(instance().url() + SAORI_MASTODON_APIPATH_TIMELINE + "/public"); - m_timelineMap["notifications"] = QUrl(instance().url() + SAORI_MASTODON_APIPATH_TIMELINE + "/notifications"); + m_timelineMap["notifications"] = QUrl(instance().url() + SAORI_MASTODON_APIPATH_NOTIFICATION + "/"); return; }