Refactored manticore SQL query to use scenes_stashed as primary table.
This commit is contained in:
@@ -50,14 +50,23 @@
|
||||
class="input"
|
||||
@change="search({ autoScope: false })"
|
||||
>
|
||||
<option value="likes">Likes</option>
|
||||
<!-- not selected in SSR without prop -->
|
||||
<option
|
||||
v-if="pageStash"
|
||||
:selected="scope === 'stashed'"
|
||||
value="stashed"
|
||||
>Stashed</option>
|
||||
|
||||
<option
|
||||
v-if="filters.search"
|
||||
:selected="scope === 'results'"
|
||||
value="results"
|
||||
>Relevance</option>
|
||||
|
||||
<option value="latest">Latest</option>
|
||||
<option value="upcoming">Upcoming</option>
|
||||
<option value="new">New</option>
|
||||
<option
|
||||
value="results"
|
||||
:disabled="!filters.search"
|
||||
>Relevance</option>
|
||||
<option value="likes">Likes</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
@@ -160,6 +169,8 @@ const scope = ref(routeParams.scope || props.defaultScope);
|
||||
const total = ref(Number(pageProps.total));
|
||||
const loading = ref(false);
|
||||
|
||||
console.log('SCOPE', routeParams.scope, scope.value);
|
||||
|
||||
const actorIds = urlParsed.search.actors?.split(',').map((identifier) => parseActorIdentifier(identifier)?.id).filter(Boolean) || [];
|
||||
const queryActors = actorIds.map((urlActorId) => aggActors.value.find((aggActor) => aggActor.id === urlActorId)).filter(Boolean);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user