14 Commits

Author SHA1 Message Date
Barış Uşaklı
e4c945f636 refactor: allow passing an array to topics.purge and topics.purgePost… (#14018)
* refactor: allow passing an array to topics.purge and topics.purgePostsAndTopic

deprecate action:topic.purge, add action:topics.purge with array of deleted topics
update usage of topics.purge to pass in an array
fix an issue in posts/delete where cids were passed to parseInt, caused AP cids to get saved into category:NaN

* lint

* refactor: change style

* use array of tids
2026-02-26 13:09:42 -05:00
Julian Lam
fe8fd9d6e5 fix: gate crossposting behind new topics:crosspost privilege 2026-02-12 15:13:59 -05:00
Julian Lam
0c79eaa529 feat: topic crossposts generate topic events, #13908 2026-01-19 19:06:29 -05:00
Barış Soner Uşaklı
57a73c4854 refactor: crossposts.get to support multiple tids 2026-01-14 18:47:52 -05:00
Julian Lam
bcc204fa93 fix: derp 2026-01-12 15:42:33 -05:00
Julian Lam
2f96eed4af fix: guard against negative uids crossposting 2026-01-12 14:07:45 -05:00
Julian Lam
82507c0fb1 fix: calling sortedSetRemove to remove multiple values, instead of baking it into sortedSetRemoveBulk 2026-01-12 12:55:18 -05:00
Julian Lam
47e37ed571 test: intify uid/cid if they are numbers (when getting crossposts) 2026-01-12 12:55:18 -05:00
Julian Lam
148663c536 fix: update auto-categorization rules to also handle already-categorized topics via crosspost 2026-01-12 12:55:18 -05:00
Julian Lam
f6cc556d37 fix: topic crosspost delete and purge handling 2026-01-12 12:55:18 -05:00
Julian Lam
0a0a7da9ba fix: bug where privileges users could not uncrosspost others' crossposts. Tests 2026-01-12 12:55:18 -05:00
Julian Lam
b981082dd7 fix: removed ajaxify refresh on crosspost commit, dynamically update post stats in template, logic fix 2026-01-12 12:55:18 -05:00
Julian Lam
349b087502 refactor: crossposts.get to return limited category data (name, icon, etc.), fixed up crosspost modal to hide uncategorized and all categories options 2026-01-12 12:55:18 -05:00
Julian Lam
1be88ca0ea refactor: move crosspost methods into their own file in src/topics 2026-01-12 12:55:18 -05:00