• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Hide Guest uploads from "Explore"

Status
Not open for further replies.

june

💖 Chevereto Fan
Hey all, so I installed chevereto again today and I was using it with sharex.
Since images uploaded using API will always be guest uploads, how can I disable them from showing up in explore page?
or can I make API use a user? I do know that user APIs are not available currently
 
You have to tweak the listing by adding a where clause in the route.

app/routes/route.explore.php

Change this:
PHP:
$list->exec();

To this:
PHP:
$list->setWhere('image_user_id IS NOT NULL');
$list->exec();
 
Last edited:
Put the updated file in app/routes/overrides

When a new release comes out then you'll need to check if there has been any changes to route.explore.php

If not, then nothing else to do as the update will ignore the files in the overrides folder.

If the file has changed since the last version then yes you'll need to copy the new file, make the change, and then over write your file in the overrides folder.

Remember that the file route.explore.php has not changed since 3.10.5 so any changes to the file are unlikely as updates are only addressing found bugs now. Consequently, you probably won't need to do anything.
 
Last edited:
Status
Not open for further replies.
Back
Top