إلغاء إدراج موضوع تلقائيًا بعد X أيام

مرحبًا بالجميع،

هل توجد طريقة لإخفاء المواضيع تلقائيًا بعد عدد معين من الأيام من آخر منشور؟

ندير فئة مخصصة للبيع، وسيساعدنا إخفاء المواضيع (أو في أسوأ الحالات، حذفها) تلقائيًا بعد 60 يومًا من عدم النشاط في توفير الكثير من أعمال الصيانة.

في идеال، أحتاج إلى تطبيق هذا الإعداد على مستوى الفئة.

إعجابَين (2)

I believe that would require a plugin.

إعجاب واحد (1)

Why unlist instead of close? There’s already support for auto-close on timers and after a long enough time with no replies.

إعجابَين (2)

My hope was to provide a cleaner “for sale” browsing experience for people dipping in that particular category.

I think if we only displayed topics which were likely to still be actively for sale it would make it easier to read and save a lot of “Is this still available?” type posts. Which 9 times out of 10 result in the OP replying “no” :man_facepalming:

Yup, I think this might the route we end up taking. People can simply scan down the list for unlocked topics and the locked ones would organically fall down the category on their own :+1:t2:

إعجاب واحد (1)

I’ve got a cron job that automatically unlists closed topics in a specific category,

run:
  - exec: echo '* * * * * postgres /usr/bin/psql discourse -c "update topics set visible = FALSE where category_id = 19 and closed = TRUE;"' >> /etc/crontab

In my app.yml. Can combine that with auto close (We have it for auto close once a solution is selected)

5 إعجابات

Nice workaround @theblazehen :+1:t2: