mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#2558 e-madencilik message bug
This commit is contained in:
parent
124af8de25
commit
a20e7dfbb8
@ -56,5 +56,8 @@
|
||||
</form>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
{{ addBlock('post-cat/section') }}
|
||||
|
||||
{{ asset_add("scripts.js", "visiosoft.module.advs::js/cats.js") }}
|
||||
{% endblock %}
|
||||
|
||||
@ -801,7 +801,13 @@ class AdvsController extends PublicController
|
||||
}
|
||||
|
||||
// Auto approve
|
||||
if (setting_value('visiosoft.module.advs::auto_approve') && !$allowPendingAdCreation) {
|
||||
$autoApprove = true;
|
||||
if ($allowPendingAdCreation) {
|
||||
$adLogExists = app('Visiosoft\PackagesModule\AdvsLog\Contract\AdvsLogRepositoryInterface')
|
||||
->findByAdID($adv->id);
|
||||
$autoApprove = $adLogExists ? false : true;
|
||||
}
|
||||
if (setting_value('visiosoft.module.advs::auto_approve') && $autoApprove) {
|
||||
$defaultAdPublishTime = setting_value('visiosoft.module.advs::default_published_time');
|
||||
$adv->update([
|
||||
'status' => 'approved',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user