mastodont-c/include/mastodont_pleroma.h
me@ow.nekobit.net 4e2ae058e6 Emoji reacts
FossilOrigin-Name: 8646e9448b6e79884d9c713c06907b9d9baf2d1402630d6ae25ea102783f53b3
2022-03-01 04:30:34 +00:00

41 lines
1.3 KiB
C

/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef MASTODONT_PLEROMA
#define MASTODONT_PLEROMA
#include <mastodont_types.h>
#include <mastodont_emoji.h>
struct mstdnt_status_pleroma
{
/* content */
int conversation_id;
int direct_conversation_id;
char* expires_at;
char* in_reply_to_account_acct;
struct mstdnt_emoji_reaction* emoji_reactions;
size_t emoji_reactions_len;
mstdnt_bool local;
mstdnt_bool parent_visible;
char* pinned_at;
/* spoiler text */
int thread_muted;
};
int mstdnt_load_status_pleroma_from_json(struct mstdnt_status_pleroma* pleroma, cJSON* js);
void _mstdnt_val_status_pleroma_call(cJSON* v, void* _type);
#endif /* MASTODONT_PLEROMA */