Hide Guest uploads from "Explore"

Status
Not open for further replies.

june

Network license
Beta tester
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
 

Rodolfo

The Chevere Guru
Chevereto Staff
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:

Oakley

Network license
Beta tester
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.
Top