Commit Graph

457 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
04477f07db fix: parent cid 2026-03-01 14:21:09 -05:00
Barış Soner Uşaklı
095258bd98 closes #14030 2026-03-01 13:50:15 -05:00
Barış Soner Uşaklı
a1b77fa033 fix: ordering nested categories
if a category is nested beyond one level, the cache for the categories needs to be cleared all the way to the root.
2026-03-01 11:46:47 -05:00
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
Barış Soner Uşaklı
a54083e341 test domain search 2026-02-21 14:24:22 -05:00
Barış Soner Uşaklı
75477202d3 fix: category search shoudn't return results that match in the cid part 2026-02-21 13:49:46 -05:00
Barış Soner Uşaklı
4b9b3648c1 fix: #13894, buildCategoryLabel helper checks fa-nbb-none 2026-02-12 18:10:19 -05:00
Julian Lam
5c35dc866c feat: introduce new topics:crosspost privilege 2026-02-12 15:13:59 -05:00
Barış Uşaklı
c65af19985 refactor: add createFieldChecker (#13973)
* refactor: add createFieldChecker

* refactor: use hasField in topic/data.js

* refactor: use hasField in categories/data.js

* test: fix category nickname logic

* test: fix spec
2026-02-11 11:38:03 -05:00
Barış Uşaklı
62d88555ae feat: eslint10 (#13967)
* feat: eslint10

* lint: no-useless-assignment
2026-02-10 12:39:11 -05:00
Julian Lam
9ebd8f4f6a fix: lint 2026-02-09 13:56:33 -05:00
Julian Lam
9f1369a272 fix: #13962, infinite scroll and pagination not working on world 2026-02-09 13:45:38 -05:00
Barış Soner Uşaklı
30541a9693 feat: show bodyLong in notifications, closes #4767
dont show blockquotes
show post content in flag notification
2026-02-05 14:08:31 -05:00
Julian Lam
fac3185974 refactor: Actors.getLocalFollowers to Actors.getFollowers, can pass in both local and remote ids 2026-01-21 14:42:16 -05:00
Barış Soner Uşaklı
6b3ec63621 refactor: add guards against bad data & infi loops 2026-01-20 12:05:52 -05:00
Barış Soner Uşaklı
57a73c4854 refactor: crossposts.get to support multiple tids 2026-01-14 18:47:52 -05:00
Barış Soner Uşaklı
be5b36bcd1 test: dont return cross posts 2026-01-14 18:14:49 -05:00
Julian Lam
c494d002ba fix: consider crossposts when building teasers, fixes #13891 2026-01-14 15:01:33 -05:00
Julian Lam
0041cfe2ed feat: introduce new front-end UI button for cross-posting, hide move on topics in remote cids
- Hide the ability to select remote cids in topic move category search
- Add a new option to category search: 'localOnly'; pretty self descriptive.
2026-01-12 12:55:18 -05:00
Julian Lam
ed83bc5b83 revert: remove federatedDescription category field, closes #13757 2025-11-05 12:55:08 -05:00
Julian Lam
5cfec5b1a9 fix: order of operations when updating category handle 2025-10-28 11:51:02 -04:00
Julian Lam
bd80b77a7a feat: ability to nickname remote categories, closes #13677 2025-09-24 11:25:20 -04:00
Barış Soner Uşaklı
09898b94ec fix: return null if field is falsy
fixes MongoServerError: FieldPath cannot be constructed with empty string error when getObjectField is called with a falsy value
2025-08-22 11:06:47 -04:00
Julian Lam
cb0b609289 refactor: category listing logic to allow remote categories to be added, disabled, and re-arranged in main forum index 2025-08-18 16:08:11 -04:00
Barış Soner Uşaklı
b20e486367 Merge branch 'master' into develop 2025-07-25 10:54:27 -04:00
Barış Soner Uşaklı
b74c789849 fix: use sharp to convert svg to png, closes #13534 2025-07-25 10:49:52 -04:00
Barış Soner Uşaklı
57a5de2682 refactor: use strings for cids 2025-05-30 11:15:02 -04:00
Barış Soner Uşaklı
28c021a01b fix: remove null categories 2025-05-30 11:11:45 -04:00
Julian Lam
a9a5ab5e4b fix: #13397, update getCidByHandle to work with remote categories, fix sync with handles causing issues with null entries 2025-05-08 13:41:43 -04:00
Julian Lam
93a5b35f33 feat: notice on remote categories that have no local followers, #13255 2025-04-29 10:28:18 -04:00
Julian Lam
695312f17f fix: missing teasers for remote categories on /world 2025-04-29 10:28:18 -04:00
Julian Lam
23b3148c84 feat: allowing manual group assertion via category search input 2025-04-29 10:28:17 -04:00
Julian Lam
6e23de46d6 fix: #13255, update category search logic to allow for remote categories 2025-04-29 10:28:17 -04:00
Julian Lam
bfc7daf255 refactor: categories.sortTidsBySet to not take cid, retrieve from tids themselves
re: ##13255, this fixes the issue with topics outside of cid -1 in /world being sorted incorrectly
2025-04-29 10:28:17 -04:00
Julian Lam
4be0f73ace feat: migration of group-as-user to group-as-category, remote category purging, more tests 2025-04-29 10:28:17 -04:00
Julian Lam
f483e883a7 feat: asserted topics and posts to remote categories will notify and add to unread based on remote category watch state 2025-04-29 10:28:17 -04:00
Julian Lam
804052f272 test: add tests for topics slotting into remote categories if addressed 2025-04-29 10:28:17 -04:00
Julian Lam
f73f727d90 feat: also include category in to field when mocking post for federation 2025-04-29 10:28:17 -04:00
Julian Lam
1f40995f79 refactor: ability to browse to remote categories, group actor assertion logic, etc. -- no logic to assign topics to remote categories yet 2025-04-29 10:28:17 -04:00
Barış Soner Uşaklı
6832541c02 lint: fix semi 2025-04-16 10:31:28 -04:00
Julian Lam
2a98a9b334 fix: bug where generateHandle would throw when passed in an invalid slug 2025-04-14 13:35:22 -04:00
Barış Soner Uşaklı
747457d7b6 refactor: remove pointless true 2025-03-19 21:14:02 -04:00
Julian Lam
dfabadbeab feat: add federatedDescription property to a category.
The federated description will be appended to the category description when queried remotely.
The default string is translatable, and tells users that it identifies as a forum category and that topics can be created within by mentioning the category directly.

closes #13127
2025-03-06 11:51:56 -05:00
Barış Soner Uşaklı
a3596772ec Merge branch 'master' into develop 2025-02-22 17:12:52 -05:00
Barış Soner Uşaklı
2c83056778 fix: #13193, add lang strings 2025-02-22 17:12:45 -05:00
Julian Lam
d0561a602e refactor: remove cid:-1:tids (and variants) from intersection in /world, fixes #13125
- remove "poor man's intersect" but not considering the main `cid:-1:tids` set at all
  including its variants (voting, reply time, etc.)
- added a new method Categories.sortTidsBySet which allows after-the-fact sorting
  of tids by their score in a set.
2025-02-19 14:18:20 -05:00
Barış Soner Uşaklı
4134a075c8 fix: remove handle on category purge
closes #13171
2025-02-17 14:27:04 -05:00
Barış Soner Uşaklı
adb430f27e fix: remove handle on category purge
closes #13171
2025-02-17 14:26:49 -05:00
Barış Soner Uşaklı
70a9f6d337 fix: return null if field isn't in hash 2025-02-11 13:37:21 -05:00
Barış Soner Uşaklı
265e44f03e refactor: remove deprecated methods 2025-02-02 14:31:58 -05:00