parent
bc2d58266b
commit
bc36480af3
@ -1 +1 @@
|
||||
Subproject commit 336a374c4cbb4fb8bcd5b2aea8d289ee556c4090
|
||||
Subproject commit 8f145d989b96f45fb37e80e26789891328fa7a5d
|
@ -1 +1 @@
|
||||
Subproject commit 4fff189159f80cf980ce65f2d3ebcb58f25a2d46
|
||||
Subproject commit 962ab0069d67747d29b1a2bbfd3efb07d2a9b890
|
@ -1,13 +1,20 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
struct status
|
||||
{
|
||||
unsigned int id;
|
||||
unsigned int account_id;
|
||||
|
||||
char* content;
|
||||
bool sensitive;
|
||||
};
|
||||
|
||||
struct status* status_from_id( unsigned int id );
|
||||
void status_write_as_json( struct status* s, FILE* f );
|
||||
|
||||
bool status_save_new( struct status* s );
|
||||
void status_save( struct status* s );
|
||||
void status_free( struct status* s );
|
||||
|
||||
|
@ -1,64 +1,5 @@
|
||||
{
|
||||
"account": %( account_write_as_json(account,f); ),
|
||||
"application": null,
|
||||
"bookmarked": false,
|
||||
"card": null,
|
||||
"content": "",
|
||||
"created_at": "2022-12-12T02:52:24.000Z",
|
||||
"emojis": [],
|
||||
"favourited": false,
|
||||
"favourites_count": 0,
|
||||
"id": "%d{ s->id }",
|
||||
"in_reply_to_account_id": null,
|
||||
"in_reply_to_id": null,
|
||||
"language": null,
|
||||
"media_attachments": [ {
|
||||
"blurhash": "eRH.A}xs0Kxv00xYR,R+t5R+9Gt6xaNG%%2-;xaM{NGRjD%%Rjs:xaxu",
|
||||
"description": null,
|
||||
"id": "1248813041",
|
||||
"pleroma": {
|
||||
"mime_type": "image/png"
|
||||
},
|
||||
"preview_url": "https://i.poastcdn.org/0ce6abff5d4838b9af4033a2567d94033b9b62a15aae394e7e48b5f597db76de.png",
|
||||
"remote_url": "https://i.poastcdn.org/0ce6abff5d4838b9af4033a2567d94033b9b62a15aae394e7e48b5f597db76de.png",
|
||||
"text_url": "https://i.poastcdn.org/0ce6abff5d4838b9af4033a2567d94033b9b62a15aae394e7e48b5f597db76de.png",
|
||||
"type": "image",
|
||||
"url": "https://i.poastcdn.org/0ce6abff5d4838b9af4033a2567d94033b9b62a15aae394e7e48b5f597db76de.png"
|
||||
} ],
|
||||
"mentions": [],
|
||||
"muted": false,
|
||||
"pinned": false,
|
||||
"pleroma": {
|
||||
"content": {
|
||||
"text/plain": ""
|
||||
},
|
||||
"conversation_id": 2935699,
|
||||
"direct_conversation_id": null,
|
||||
"emoji_reactions": [ {
|
||||
"count": 1,
|
||||
"me": false,
|
||||
"name": "😆"
|
||||
} ],
|
||||
"expires_at": null,
|
||||
"in_reply_to_account_acct": null,
|
||||
"local": false,
|
||||
"parent_visible": false,
|
||||
"pinned_at": null,
|
||||
"spoiler_text": {
|
||||
"text/plain": ""
|
||||
},
|
||||
"thread_muted": false
|
||||
},
|
||||
"poll": null,
|
||||
"reblog": null,
|
||||
"reblogged": false,
|
||||
"reblogs_count": 1,
|
||||
"replies_count": 0,
|
||||
"sensitive": false,
|
||||
"spoiler_text": "",
|
||||
"tags": [],
|
||||
"text": null,
|
||||
"uri": "https://poa.st/objects/0db3a913-5007-464d-9829-995d5090c976",
|
||||
"url": "https://poa.st/objects/0db3a913-5007-464d-9829-995d5090c976",
|
||||
"visibility": "public"
|
||||
"account_id": %d{s->account_id},
|
||||
"content": "%( write_json_escaped(f,s->content); )",
|
||||
"sensitive": %s{ b(s->sensitive) }
|
||||
}
|
||||
|
@ -0,0 +1,64 @@
|
||||
{
|
||||
"account": %( account_write_as_json(account,f); ),
|
||||
"application": null,
|
||||
"bookmarked": false,
|
||||
"card": null,
|
||||
"content": "%s{ s->content }",
|
||||
"created_at": "2022-12-12T02:52:24.000Z",
|
||||
"emojis": [],
|
||||
"favourited": false,
|
||||
"favourites_count": 0,
|
||||
"id": "%d{ s->id }",
|
||||
"in_reply_to_account_id": null,
|
||||
"in_reply_to_id": null,
|
||||
"language": null,
|
||||
"media_attachments": [ {
|
||||
"blurhash": "eRH.A}xs0Kxv00xYR,R+t5R+9Gt6xaNG%%2-;xaM{NGRjD%%Rjs:xaxu",
|
||||
"description": null,
|
||||
"id": "1248813041",
|
||||
"pleroma": {
|
||||
"mime_type": "image/png"
|
||||
},
|
||||
"preview_url": "https://i.poastcdn.org/0ce6abff5d4838b9af4033a2567d94033b9b62a15aae394e7e48b5f597db76de.png",
|
||||
"remote_url": "https://i.poastcdn.org/0ce6abff5d4838b9af4033a2567d94033b9b62a15aae394e7e48b5f597db76de.png",
|
||||
"text_url": "https://i.poastcdn.org/0ce6abff5d4838b9af4033a2567d94033b9b62a15aae394e7e48b5f597db76de.png",
|
||||
"type": "image",
|
||||
"url": "https://i.poastcdn.org/0ce6abff5d4838b9af4033a2567d94033b9b62a15aae394e7e48b5f597db76de.png"
|
||||
} ],
|
||||
"mentions": [],
|
||||
"muted": false,
|
||||
"pinned": false,
|
||||
"pleroma": {
|
||||
"content": {
|
||||
"text/plain": ""
|
||||
},
|
||||
"conversation_id": 2935699,
|
||||
"direct_conversation_id": null,
|
||||
"emoji_reactions": [ {
|
||||
"count": 1,
|
||||
"me": false,
|
||||
"name": "😆"
|
||||
} ],
|
||||
"expires_at": null,
|
||||
"in_reply_to_account_acct": null,
|
||||
"local": false,
|
||||
"parent_visible": false,
|
||||
"pinned_at": null,
|
||||
"spoiler_text": {
|
||||
"text/plain": ""
|
||||
},
|
||||
"thread_muted": false
|
||||
},
|
||||
"poll": null,
|
||||
"reblog": null,
|
||||
"reblogged": false,
|
||||
"reblogs_count": 1,
|
||||
"replies_count": 0,
|
||||
"sensitive": false,
|
||||
"spoiler_text": "",
|
||||
"tags": [],
|
||||
"text": null,
|
||||
"uri": "https://poa.st/objects/0db3a913-5007-464d-9829-995d5090c976",
|
||||
"url": "https://poa.st/objects/0db3a913-5007-464d-9829-995d5090c976",
|
||||
"visibility": "public"
|
||||
}
|
Loading…
Reference in new issue