noogle, update search

This commit is contained in:
Believethehype 2024-12-05 11:43:51 +01:00
parent c9a97891fb
commit ee25e33b38
2 changed files with 5 additions and 3 deletions

View File

@ -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: {

View File

@ -18,7 +18,8 @@
</div>
</div>
<p>{{ content.substr(0, 320) + "\u2026" }}</p>
<!-- <p>{{ content.substr(0, 320) + "\u2026" }}</p>-->
<p v-html="StringUtil.parseImages(content).substr(0, 640) + '\u2026'"></p>
<div style="padding: 2px; text-align: left;">
<a :href="links.uri" class="menusmall" target="_blank">Nostr Client</a>
<a :href="links.njump" class="menusmall" target="_blank">NJump</a>
@ -37,6 +38,7 @@
import type {Header, SortType} from "vue3-easy-data-table";
import store from '../store';
import StringUtil from "@/components/helper/string";
const sortBy = "indicator.time";
const sortType: SortType = "desc";