Looks like a reply fix.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3939 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2022-07-28 01:20:09 +00:00
parent ac960a98bf
commit 6728727e89
4 changed files with 6 additions and 4 deletions

View File

@ -313,6 +313,7 @@ async function getRelatedPostIds(db, message, ids, limit) {
id = JSON.parse(message.content).root || id;
} catch {
}
print("id = ", id);
for (var i = 0; i < ids.length; i += k_batch_max) {
var ids_batch = ids.slice(i, Math.min(i + k_batch_max, ids.length));
await ssb.sqlStream(

View File

@ -1,4 +1,5 @@
import * as tfshared from './tf-shared.js';
import * as tf from './tf.js';
Vue.component('tf-message', {
props: ['message', 'messages', 'votes'],
@ -42,8 +43,8 @@ Vue.component('tf-message', {
methods: {
markdown: tfshared.markdown,
set_reply: function() {
g_data.reply_root = this.content_json.root || this.message.id;
g_data.reply_branch = this.message.id;
tf.g_data.reply_root = this.content_json.root || this.message.id;
tf.g_data.reply_branch = this.message.id;
},
vote: function(event) {
var reaction = event.srcElement.innerText;