HTTPs check

Would apply for non-http testing?

FossilOrigin-Name: 34c6a390c6f8a8912f8d63520fc86e1d02e141b91fc56d78eea2a7ee71219a66
This commit is contained in:
me@ow.nekobit.net 2022-03-18 15:03:25 +00:00
parent 5813c25e1d
commit d4a53d2472

View file

@ -51,7 +51,7 @@ char* construct_post_box(char* reply_id,
* so we just grep for regex href
* - Misskey/Mastodon adds an @ symbol in the href param, while pleroma adds /users
*/
#define REGEX_REPLY "<a .*?href=\"https:\\/\\/(.*?)\\/(?:@|users/)?(.*?)?\".*?>@(?:<span>)?.*?(?:<\\/span>)?"
#define REGEX_REPLY "<a .*?href=\"https?:\\/\\/(.*?)\\/(?:@|users/)?(.*?)?\".*?>@(?:<span>)?.*?(?:<\\/span>)?"
#define REGEX_RESULTS_LEN 9
char* reply_status(char* id, struct mstdnt_status* status)