Commit Graph

71 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
e9d4c7b97e fix: summary post parse 2025-02-23 10:25:53 -05:00
Barış Soner Uşaklı
ad92e93129 fix: add sourceContent to getPostSummaryByPids
ap posts wasnt showing any content in mobile navigator
2025-02-23 10:21:47 -05:00
Julian Lam
16c8a6523a feat: add new escape option to getPostSummaryByPids [breaking]
Changes logic so that the new `escape` option escapes HTML,
whereas the old behaviour had `parse: false` escape HTML.

Now, when `parse` is `false`, the content is unchanged.

Defaults are `{ parse: true, escape: false, stripTags: false }`
2024-09-05 10:42:08 -04:00
Julian Lam
525b7c2cee feat: save remote post url into hash for use 2024-04-11 13:25:37 -04:00
Julian Lam
3a870360c4 fix: revert introduction of toPid into post intFields, manually cast toPid as int in getPostSummaryByPids if present and numeric 2024-02-21 15:15:59 -05:00
Julian Lam
6b517252b9 feat: activitypub response to note retrieval via pid 2024-01-25 16:27:56 -05:00
Barış Soner Uşaklı
78f793473d feat: up emoji, remove title parse code 2023-05-08 12:24:47 -04:00
Barış Soner Uşaklı
6d5a2635ba parse topic titles for post summaries 2023-05-08 11:40:27 -04:00
Barış Soner Uşaklı
b5dd89e1c0 feat: store topic title and tags in diffs (#10900)
* feat: store topic title and tags in diffs

allow restoring post diff if tags didn't change

* test: fix tests, fast computer problems
2022-09-16 22:16:08 -04:00
gasoved
077330b764 feat: scheduled topics (#9399)
* feat: scheduled topics

* refactor: linting fixes

* fix: tests

* fix(test): race condition

* fix: make a single request
2021-03-24 14:28:02 -04:00
Barış Soner Uşaklı
eb360351e5 fix: #9394, fix guest handles 2021-03-15 14:03:35 -04:00
Peter Jaszkowiak
cc9d6fd08b chore: eslint max-len 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
b56d9e12b5 chore: eslint prefer-arrow-callback 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ı
dbd814c25f fix: spec, only call modifyUser on unique user objects 2020-11-19 10:23:19 -05:00
Barış Soner Uşaklı
903e9d82b8 feat: #8637 2020-11-19 09:52:16 -05:00
Julian Lam
a9dfc9a74e feat: add replies to getPostSummaryByPids 2020-08-27 14:46:07 -04:00
Julian Lam
e0c7d65a92 Revert "feat: add reply count to getPostSummaryByPids"
This reverts commit de0f4aadb8.
2020-08-27 14:44:51 -04:00
Julian Lam
de0f4aadb8 feat: add reply count to getPostSummaryByPids 2020-08-27 13:21:18 -04:00
Barış Soner Uşaklı
fef04fcf6b fix: missing backgroundImage #8386 2020-07-04 16:08:05 -04:00
Julian Lam
ccc6118d30 Testing suite integration for openapi spec (#8263)
* feat: testing suite integration for openapi spec

The testing suite now takes the openapi spec into account. It will
check each route defined, make a call to it, and compare the
response with the defined schema. Any mismatches will cause the
test to fail.

* fix(openapi): removed debug stuff from tests

* fix(openapi): fixed some tests

* fix(openapi): added additional check to tests, test fixes

* fix(openapi): better tests, fixed spec errors

* fix(openapi): bad conditional in test

* fix: oops

* fix(openapi): more tests fixing

* fix(openapi): more tests

* fix(openapi): fix some more tests

* fix: verbose'd an info log

* fix: topic pagination route returns schema-optimized pagination block

* fix(openapi): more test/spec fixes

* fix(openapi): accidentally sending in authenticated jar for anon routes

* fix(openapi): more test/spec fixes

* fix(openapi): more spec fixes

* fix: timestampReadable Invalid Date

* fix(openapi): more tests... almost there

* fix(openapi): more tests fixing

* fix(openapi): finally all tests passing

* fix(openapi): added reverse test to compare response to spec

... and fixed all the tests that broke

* fix: remove tests related to group covers, as route is gone

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): broken test on travis

* fix(openapi): object cache is not present for psql

* fix: tests

Co-authored-by: Barış Soner Uşaklı <barisusakli@gmail.com>
2020-04-23 21:50:08 -04:00
Barış Soner Uşaklı
80bd52fcfa feat: add image and imageClass to post summaries 2019-08-20 20:05:07 -04:00
Barış Soner Uşaklı
c0c6c652be feat: #7743, finish post module 2019-07-17 19:05:55 -04:00
Baris Usakli
41bc6ca2c4 feat: add status to post summaries 2019-06-27 11:17:40 -04:00
Barış Soner Uşaklı
ac39112271 remove more parseInts 2018-10-21 19:33:46 -04:00
Barış Soner Uşaklı
26d4e0852f use includes instead of indexOf
use _.uniq instead of filter&indexOf
2018-10-20 14:40:48 -04:00
Julian Lam
aaa9561b7f Revert "moved filter:post.getPostSummaryByPids to before parsePosts call"
This reverts commit cf82407a8f.
2018-08-26 00:08:06 -04:00
Julian Lam
cf82407a8f moved filter:post.getPostSummaryByPids to before parsePosts call
/@pitaj
2018-08-24 14:54:11 -04:00
Julian Lam
bfee23adee basic methods and initial integration for #6463 2018-04-20 12:20:48 -04:00
Peter Jaszkowiak
46fafb20b9 Remove string.js dependency 2017-10-13 21:02:41 -06:00
Barış Soner Uşaklı
1019feb569 fix method name 2017-09-12 11:51:38 -04:00
Barış Soner Uşaklı
f42119673f fix string cids in post summaries 2017-09-12 11:41:52 -04:00
Baris Usakli
062bced3dd cleanup and tests 2017-05-25 16:40:07 -04:00
Peter Jaszkowiak
0fe10f5e86 Escape topic titles at the source, deduplicate 2017-04-15 01:38:42 -06:00
Peter Jaszkowiak
1fb48ef7a7 Fix #5592 (#5593)
* Fix #5592
Escape translation tokens in topic titles, descriptions, profile about, and post contents

* Fix tests
2017-04-13 21:37:54 +03: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
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
604358ecc4 ESlint keyword-spacing, no-multi-spaces 2017-02-18 01:52:56 -07:00
Peter Jaszkowiak
3361a72725 ESlint no-plusplus
and no-empty, space-unary-ops
2017-02-18 01:12:18 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
barisusakli
f505b47ac9 prevent crash if topic is not found 2016-12-22 12:19:07 +03:00
Julian Lam
ead4de6c6f Merge branch 'fix-some-code-lint' of https://github.com/HeeL/NodeBB into HeeL-fix-some-code-lint 2016-10-13 14:43:28 -04:00
barisusakli
5f16205d15 closes #5109 2016-10-13 13:20:45 +03:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
HeeL
3fa1c1f927 Fix space-infix-ops linter rule 2016-10-13 11:42:29 +02:00
barisusakli
caf30b5580 use post 2016-10-12 22:22:15 +03:00
barisusakli
460ac17eaa closes #4647
addm upvotes, downvotes and votes to getPostSummary
2016-10-12 22:20:06 +03:00
barisusakli
c8f270ec67 another validator.escape fix 2016-08-27 02:01:41 +03:00