mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-09 19:50:26 +03:00
Added a dummy 'created_at' field for accounts that don't have a date.
This avoid a crash in Tusky.
This commit is contained in:
parent
c66cd2edb5
commit
815c39d0c6
@ -432,6 +432,11 @@ xs_dict *mastoapi_account(const xs_dict *actor)
|
||||
|
||||
if (pub)
|
||||
acct = xs_dict_append(acct, "created_at", pub);
|
||||
else {
|
||||
/* unset created_at crashes Tusky, so lie like a mf */
|
||||
xs *date = xs_str_utctime(0, "%Y-%m-%dT%H:%M:%SZ");
|
||||
acct = xs_dict_append(acct, "created_at", date);
|
||||
}
|
||||
|
||||
acct = xs_dict_append(acct, "note", xs_dict_get(actor, "summary"));
|
||||
acct = xs_dict_append(acct, "url", id);
|
||||
|
Loading…
Reference in New Issue
Block a user