Commit Graph

168 Commits

Author SHA1 Message Date
c60f7a379d
Replaced MastodonException and replaced it with CURLException.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-16 22:38:18 +01:00
0787fefba9
Switch from mastodon-cpp to mastodonpp. 2020-01-15 19:09:01 +01:00
b35e298eea
CMake: Use the right target for jsoncpp. 2020-01-15 18:25:19 +01:00
259e15defc
Remove last_guid.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-09 23:38:19 +01:00
163777d69a
Fix stringlist <-> jsonarray conversion.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-09 23:32:33 +01:00
be4585a578
Use transform for stringlist <-> jsonarray conversion.
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-09 23:10:41 +01:00
e7e222f035
Don't throw error if watchwords.json does not exist.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-03 03:26:00 +01:00
145a97bb38
Add guid of already posted items to debug output.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-01 13:44:54 +01:00
0eb103fb8e
Fix debug output of data.guids and don't output data.last_guid.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-01 13:42:34 +01:00
986bac21da
Add config option keep_looking.
All checks were successful
continuous-integration/drone/push Build is passing
If set, don't stop at first already posted guid.
2020-01-01 13:29:57 +01:00
80db08a9c6
Change JSON array access to be compatible to jsoncpp-1.7.4.
All checks were successful
continuous-integration/drone/push Build is passing
2020-01-01 13:12:46 +01:00
aa5e7008b2
Check for already posted guids in ProfileData::guids.
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-01 13:00:00 +01:00
cfe57f1931
Actually throw ParseException. 🤦 2020-01-01 12:59:52 +01:00
4d35ee1d66
Record each posted guid.
Some checks failed
continuous-integration/drone/push Build is failing
2020-01-01 12:43:42 +01:00
f3b22e8206
Add guids to ProfileData. 2020-01-01 12:43:04 +01:00
71a754ed1c
Add functions to convert between list<string> and Json::Value. 2020-01-01 12:13:35 +01:00
7267981c37
Add ParseException.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-31 13:29:45 +01:00
71783b2638
Simplify storing boolean values after inquiring.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-31 08:00:31 +01:00
fec7ac92da
Only configure @VARIABLES@ in version.hpp.in. 2019-12-29 10:32:16 +01:00
dcc07fab75
Refine hashtag-regex.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 08:56:27 +01:00
7e0278b542
Reduce scope of using declarations in main.cpp.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 08:46:15 +01:00
dec712b43e
Add - und \u\u200b (zero width space) as word delimiters.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 08:38:16 +01:00
a8c3127570
Replace using namespace with namespace. 2019-12-29 08:33:31 +01:00
9031f0d526
Shut up clang-tidy about goto. 2019-12-29 08:33:06 +01:00
26b3d56fdf
Don't output access token in debug log.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 05:27:16 +01:00
bc2364875d
Replace for-loop with std::any_of.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 04:00:48 +01:00
51673c7f2a
Calculate post length correctly.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 03:47:57 +01:00
75a18dc21c
Fix maximum length log message. 2019-12-29 03:34:10 +01:00
9dfb6715c7
Narrow scope of omission. 2019-12-29 03:34:00 +01:00
4c49dafafd
Log status.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 02:48:56 +01:00
9477add980
Explicitly set len_append to 0 if nothing to append.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 02:41:13 +01:00
82b136aeca
Log maximum status length before resizing. 2019-12-29 02:39:00 +01:00
d7fb71dc95
Append link adter resizing. 🤦
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 02:25:08 +01:00
2099f48cef
Subtract title length from maximum length if titles_as_cw is set.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 02:08:09 +01:00
2db204e6a2
Fix resizing bug.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 01:45:13 +01:00
06e9fe63da
Consider Subject (CW) size when calculating total size.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 01:05:08 +01:00
2a1cbe5f8a
Log right URI for temporaray redirects.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 00:49:23 +01:00
e8ac4869b1
Treat permanent redirects after temporary redirects as temporary.
All checks were successful
continuous-integration/drone/push Build is passing
Example:
http://example.com/ returns 302 with Location: http://example.com/1
http://example.com/1 returns 301 with Location: http://example.com/2

http://example.com/ will not be overwritten in the config file.
2019-12-29 00:41:14 +01:00
94ca8bffaf
Don't cut in the middle of a word.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 00:11:26 +01:00
937b08ff85
Parse watchwords only once.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-29 00:05:13 +01:00
90f9cecf7b
Remove unnecessary else.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-28 23:39:56 +01:00
78e8e6b92e
Log if we stop parsing a document. 2019-12-28 23:39:35 +01:00
e899754633
Allow GUID to be empty.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-28 23:33:49 +01:00
c81d60242c
Apply individual fixes before removing HTML.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-28 23:31:10 +01:00
bb86f321b5
Cut post if append is empty; add ellipsis.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-28 23:10:49 +01:00
fafe586cc4
Log path of watchwords.json after reading.
All checks were successful
continuous-integration/drone/push Build is passing
2019-12-28 09:58:49 +01:00
2a0fd3d6e4
Catch JSON errors. 2019-12-28 09:55:41 +01:00
bad3059092
Add watchwords (hashtags) support. 2019-12-28 09:48:42 +01:00
4d2353e3d5
Initialize profile in Config correctly. 2019-12-28 09:48:33 +01:00
2b0a091e87
More renaming. 2019-12-28 09:10:32 +01:00