File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -33,22 +33,20 @@ type PostsPlus = Posts & {
33
33
stripedMarkdown: string
34
34
}
35
35
36
- const feedId = ref (' ' )
37
-
38
36
const fetchPolls = async (feed : OptionsDatabase ): Promise <Polls > => {
39
- feedId .value = feed .id
40
37
const title = feed .title
41
38
42
39
const url = new URL (
43
- ` /api/${postsPluginId }/${feedId . value }/search/has:option/%23poll ` ,
40
+ ` /api/${postsPluginId }/${feed . id }/search/has:option/%23poll ` ,
44
41
window .location .origin ,
45
42
)
46
43
47
44
const res = await fetch (url .toString ())
48
45
const json = await res .json ()
49
46
50
47
return {
51
- title: title ? title : feedId .value ,
48
+ title: title ? title : feed .id ,
49
+ feedId: feed .id ,
52
50
values: decode (json .contents ),
53
51
}
54
52
}
@@ -89,7 +87,7 @@ onMounted(async () => {
89
87
<a
90
88
v-for =" post in poll.values"
91
89
:key =" post.id"
92
- :href =" `/posts/${feedId}/${post.id}`"
90
+ :href =" `/posts/${poll. feedId}/${post.id}`"
93
91
class =" block mb-4 p-2 bg-gray-100 rounded"
94
92
>
95
93
<div class =" flex justify-between gap-2" >
You can’t perform that action at this time.
0 commit comments