Commit Graph

63 Commits

Author SHA1 Message Date
Julian Lam
92708d2f6b fix: #13170, remove mime-type and regex test for "Emoji" attachment, wrap tag name in colons if not provided 2025-02-18 10:58:04 -05:00
Julian Lam
b537437c78 feat: save audience into post hash (for remote posts) 2024-12-24 11:17:22 -05:00
Julian Lam
1839388b65 fix: persist sourceContent into post hash when ingesting remote posts, update markdown so that field is parsed instead of ignoring content 2024-12-03 11:59:55 -05:00
Julian Lam
3968c822a2 feat: add title property to custom emoji markup 2024-11-14 15:08:09 -05:00
Julian Lam
09b1e11940 feat: #12683, parse incoming emoji tags and replace in content prior to storage in database 2024-11-13 16:47:00 -05:00
Julian Lam
f629b20f2d fix: tighten up logic in checkToPid internal method 2024-07-05 13:49:16 -04:00
Julian Lam
e75ec39b70 feat: topic backfill logic via resolvable context #12647 2024-06-28 12:54:41 -04:00
Julian Lam
f783338621 fix: #12496, url in schema 2024-04-11 13:43:29 -04:00
Julian Lam
525b7c2cee feat: save remote post url into hash for use 2024-04-11 13:25:37 -04:00
Julian Lam
c5c0c47393 chore: lint 2024-03-13 11:45:28 -04:00
Julian Lam
81b319f494 fix: accidental saving of ephemeral _activitypub object into db, should plumb into hooks only 2024-03-13 11:19:50 -04:00
Julian Lam
52c143aa03 fix: template helper 2024-03-12 13:27:29 -04:00
Barış Soner Uşaklı
d50473dfeb fix: pass in missing uid 2023-09-25 11:20:21 -04:00
Barış Soner Uşaklı
8895b152c2 refactor: get rid of exists db call, use promise.parallel 2023-09-25 11:08:09 -04:00
Julian Lam
fe42fd4ebc fix: #12025, validity checking on user-provided toPid value 2023-09-25 10:34:35 -04:00
Barış Soner Uşaklı
56523aa148 revert: change toPid truthy 2021-03-16 18:02:21 -04:00
Barış Soner Uşaklı
a8f7b24452 fix: #9395, pass all data from client to Topics.reply (#9396)
* fix: #9395, pass all data from client to Topics.reply

so plugins can set custom fields
refactor and use setDefaultPostData

* fix: circular json error

* refactor: change params
2021-03-15 15:34:05 -04:00
Peter Jaszkowiak
23f212a4c0 chore: eslint prefer-destructuring 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
dab3b23575 chore: eslint no-var, vars-on-top 2021-02-08 18:06:44 -05:00
Peter Jaszkowiak
707b55b6a5 chore: eslint prefer-template 2021-02-08 18:06:44 -05:00
Julian Lam
6e2da9966e refactor: move plugin hook methods to plugin.hooks.* 2020-11-20 16:32:39 -05:00
Barış Soner Uşaklı
75bcb0f484 fix: remove unused data from post/topic/user hashes 2019-10-07 23:13:43 -04:00
Barış Soner Uşaklı
1b2b308a7e feat: #7743, posts module 2019-07-17 00:17:21 -04:00
Barış Soner Uşaklı
6a7bc1c5fb fix: on new post add it to cid::uid::pids 2019-06-24 17:26:28 -04:00
renovate[bot]
64b9dabff8 chore(deps): update dependency eslint-config-airbnb-base to v13 (#6599)
* chore(deps): update dependency eslint-config-airbnb-base to v13

* chore: #6599, linting 😬
2018-11-07 15:53:14 -05:00
Barış Soner Uşaklı
9c022afae1 Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
25ebd306cc closes #6548 2018-06-03 14:37:23 -04:00
Julian Lam
850f59a1ae additional functionality, integration, and testing for #6455 2018-04-16 15:21:48 -04:00
Peter Jaszkowiak
3c2d4fe649 Switch from underscore to lodash 2017-05-27 14:51:45 -06:00
Baris Usakli
062bced3dd cleanup and tests 2017-05-25 16:40:07 -04:00
Barış Soner Uşaklı
14f3907aa4 change the way group member posts are stored 2017-05-04 16:32:51 -04:00
barisusakli
d8170d5d1c fix tests 2017-04-19 13:09:16 -04:00
barisusakli
974106b7e2 closes #5610 2017-04-19 12:07:42 -04:00
Julian Lam
d18cfced96 Merge remote-tracking branch 'origin/master' into develop 2017-04-12 23:57:14 -04:00
Peter Jaszkowiak
1ed571189c Make utils and translator easier to require
Move utils.walk to file.walk, backwards compatible
2017-04-08 20:27:52 -06:00
Julian Lam
ddea9f534e running eslint again 2017-02-24 12:47:46 -05:00
Julian Lam
72e77772db Merge branch 'master' into develop 2017-02-24 12:46:40 -05:00
Peter Jaszkowiak
896c8c7343 ESlint object-curly-spacing 2017-02-18 12:30:49 -07:00
Peter Jaszkowiak
3b0dd2d1ef ESlint padded-blocks 2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
b1b486f729 ESlint quote-props 2017-02-18 01:19:20 -07:00
Peter Jaszkowiak
52f2028206 ESlint no-multiple-empty-lines 2017-02-17 22:08:23 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
barisusakli
a143a15f5d closes #5397 2017-01-26 20:44:26 +03:00
pichalite
9176f7e037 Only send isMain to hook instead of saving to post hash 2017-01-17 18:24:16 +00:00
pichalite
a3c05b2ea4 Send isMain to post.save filters 2017-01-16 23:40:25 +00:00
Barış Soner Uşaklı
4ff3d06f90 escape labelColor, icon, cover:position, validate toPid 2016-12-17 16:00:39 +03:00
Ben Lubar
123c66e3ec Cache the number of replies in the post object. See #5050.
https://github.com/NodeBB/NodeBB/pull/5050#pullrequestreview-4248269
2016-10-27 12:40:51 -05:00
Ben Lubar
fae28ed3cc Add an index for going from a post to its replies 2016-10-27 12:40:51 -05:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
barisusakli
848065c820 remove empty fields from new posts 2016-10-08 19:25:10 +03:00