1
0
This commit is contained in:
syui 2024-04-25 22:41:25 +09:00
parent dfc877a462
commit 15db5bb120
Signed by: syui
GPG Key ID: 5417CFEBAD92DF56

View File

@ -4,14 +4,8 @@
<span v-for="i in api_json_record" class="comment"> <span v-for="i in api_json_record" class="comment">
<p class="comment-body" v-if="i.cid_root == cid_root"> <p class="comment-body" v-if="i.cid_root == cid_root">
<span v-if="i.did.replace('did:plc:', '') != ''"> <span v-if="i.did.replace('did:plc:', '') != ''">
{{ axios_check('/icon/' + i.did.replace('did:plc:', '') + '.jpg') }}
</span>
<span v-if="url_check == true && i.did.replace('did:plc:', '') != ''">
<img :src="'https://git.syui.ai/ai/comment/raw/branch/main/public/icon/' + i.did.replace('did:plc:', '') + '.jpg'" class="comment"/> <img :src="'https://git.syui.ai/ai/comment/raw/branch/main/public/icon/' + i.did.replace('did:plc:', '') + '.jpg'" class="comment"/>
</span> </span>
<span v-else-if="i.avatar">
<img :src="i.avatar" class="comment"/>
</span>
<span class="comment-time" v-if="i.updated_at"><a :href="i.bsky_url" v-if="i.bsky_url">{{ moment(i.updated_at) }}</a></span> <span class="comment-handle" v-if="i.handle"><a :href="'https://' + i.bsky_url.split('/').slice(2,5).join('/')" v-if="i.bsky_url">@{{ i.handle.replace('.bsky.social', '') }}</a></span> <span class="comment-time" v-if="i.updated_at"><a :href="i.bsky_url" v-if="i.bsky_url">{{ moment(i.updated_at) }}</a></span> <span class="comment-handle" v-if="i.handle"><a :href="'https://' + i.bsky_url.split('/').slice(2,5).join('/')" v-if="i.bsky_url">@{{ i.handle.replace('.bsky.social', '') }}</a></span>
<span class="comment-text" v-if="i.text">{{ i.text }}</span> <span class="comment-text" v-if="i.text">{{ i.text }}</span>
</p> </p>