diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-15 01:36:06 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-12-15 01:36:06 -0500 |
commit | af31402b7f1d9d118f07f0fd6554319dbd6b44b6 (patch) | |
tree | 309ef8ee1b4dc7e787193f4eaffa219f0b68213d /src/discord/store.cpp | |
parent | 8324172a90752403edcec2203a2abb386046cc8f (diff) | |
parent | 4bce7b7523caa26023b1a2f5e02e6646ed29f5e0 (diff) | |
download | abaddon-portaudio-af31402b7f1d9d118f07f0fd6554319dbd6b44b6.tar.gz abaddon-portaudio-af31402b7f1d9d118f07f0fd6554319dbd6b44b6.zip |
Merge branch 'master' into theming
Diffstat (limited to 'src/discord/store.cpp')
-rw-r--r-- | src/discord/store.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/discord/store.cpp b/src/discord/store.cpp index 817f71f..bf630aa 100644 --- a/src/discord/store.cpp +++ b/src/discord/store.cpp @@ -368,6 +368,7 @@ void Store::SetMessage(Snowflake id, const Message &message) { s->Bind(6, a.ProxyURL); s->Bind(7, a.Height); s->Bind(8, a.Width); + s->Bind(9, a.Description); if (!s->Insert()) fprintf(stderr, "message attachment insert failed for %" PRIu64 "/%" PRIu64 ": %s\n", static_cast<uint64_t>(id), static_cast<uint64_t>(a.ID), m_db.ErrStr()); s->Reset(); @@ -975,7 +976,7 @@ Message Store::GetMessageBound(std::unique_ptr<Statement> &s) const { s->Get(5, r.Timestamp); s->Get(6, r.EditedTimestamp); // s->Get(7, r.IsTTS); - // s->Get(8, r.DoesMentionEveryone); + s->Get(8, r.DoesMentionEveryone); s->GetJSON(9, r.Embeds); s->Get(10, r.IsPinned); s->Get(11, r.WebhookID); @@ -1021,6 +1022,7 @@ Message Store::GetMessageBound(std::unique_ptr<Statement> &s) const { s->Get(5, q.ProxyURL); s->Get(6, q.Height); s->Get(7, q.Width); + s->Get(8, q.Description); } s->Reset(); } @@ -1509,6 +1511,7 @@ bool Store::CreateTables() { proxy TEXT NOT NULL, height INTEGER, width INTEGER, + description TEXT, PRIMARY KEY(message, id) ) )"; @@ -2212,7 +2215,7 @@ bool Store::CreateStatements() { m_stmt_set_attachment = std::make_unique<Statement>(m_db, R"( REPLACE INTO attachments VALUES ( - ?, ?, ?, ?, ?, ?, ?, ? + ?, ?, ?, ?, ?, ?, ?, ?, ? ) )"); if (!m_stmt_set_attachment->OK()) { |