From ee25e33b3833977ad795f342bfa8bfb63d497c5c Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Thu, 5 Dec 2024 11:43:51 +0100 Subject: [PATCH] noogle, update search --- ui/noogle/src/components/Search.vue | 4 ++-- ui/noogle/src/components/SearchResultTable.vue | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/noogle/src/components/Search.vue b/ui/noogle/src/components/Search.vue index 4e3f9c6..5ff1a7d 100644 --- a/ui/noogle/src/components/Search.vue +++ b/ui/noogle/src/components/Search.vue @@ -18,7 +18,7 @@ import VueNotifications from "vue-notifications"; import {onMounted, ref} from "vue"; import VueDatePicker from '@vuepic/vue-datepicker'; import '@vuepic/vue-datepicker/dist/main.css' -import {get_user_infos, getEvents, nextInput, sleep} from "../components/helper/Helper.vue" +import {get_user_infos, getEvents, nextInput, sleep, parseandreplacenpubsName} from "../components/helper/Helper.vue" import StringUtil from "@/components/helper/string.ts"; @@ -452,7 +452,7 @@ async function listen() { if (items.find(e => e.id.toHex() === evt.id.toHex()) === undefined) { items.push({ id: evt.id, - content: evt.content, + content: await parseandreplacenpubsName(evt.content), author: name, authorurl: "https://njump.me/" + evt.author.toBech32(), links: { diff --git a/ui/noogle/src/components/SearchResultTable.vue b/ui/noogle/src/components/SearchResultTable.vue index a8f5ca2..8aae62f 100644 --- a/ui/noogle/src/components/SearchResultTable.vue +++ b/ui/noogle/src/components/SearchResultTable.vue @@ -18,7 +18,8 @@ -
{{ content.substr(0, 320) + "\u2026" }}
+ +